java.lang.Object
org.eclipse.jetty.http.MultiPart.Part
org.eclipse.jetty.http.MultiPartByteRanges.Part
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
MultiPartByteRanges
A MultiPart.Part whose content is a byte range of a Resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.io.Content.SourceReturns the content of this part as a newContent.SourceMethods inherited from class org.eclipse.jetty.http.MultiPart.Part
close, delete, fail, getContentAsString, getContentSource, getFileName, getHeaders, getLength, getName, writeTo
-
Constructor Details
-
Part
-
Part
public Part(HttpFields headers, org.eclipse.jetty.util.resource.Resource resource, ByteRange byteRange)
-
-
Method Details
-
newContentSource
public org.eclipse.jetty.io.Content.Source newContentSource()Description copied from class:MultiPart.PartReturns the content of this part as a new
Content.SourceIf the content is reproducible, invoking this method multiple times will return a different independent instance for every invocation.
If the content is not reproducible, subsequent calls to this method will return null.
The content type and content encoding are specified in this part's
headers.The content encoding may be specified by the part named
_charset_, as specified in RFC 7578, section 4.6.- Specified by:
newContentSourcein classMultiPart.Part- Returns:
- the content of this part as a new
Content.Sourceor null if the content cannot be consumed multiple times. - See Also:
-