Package org.eclipse.jetty.io
Interface Content.Source.Factory
- All Known Implementing Classes:
MultiPart.ByteBufferPart
,MultiPart.ChunksPart
,MultiPart.ContentSourcePart
,MultiPart.Part
,MultiPart.PathPart
,MultiPartByteRanges.Part
- Enclosing interface:
- Content.Source
public static interface Content.Source.Factory
Factory of
Content.Source
.-
Method Summary
Modifier and TypeMethodDescriptionnewContentSource
(ByteBufferPool.Sized bufferPool, long first, long length) Creates a newContent.Source
.
-
Method Details
-
newContentSource
Creates a newContent.Source
.- Parameters:
bufferPool
- theByteBufferPool.Sized
to get buffers from.null
means allocate new buffers as needed.first
- the first byte of the resource to start from.length
- the length of the content to make available, -1 for the full length.- Returns:
- a
Content.Source
.
-