Module org.eclipse.jetty.http
Package org.eclipse.jetty.http
Class MultiPartByteRanges.PathContentSource
java.lang.Object
org.eclipse.jetty.io.content.PathContentSource
org.eclipse.jetty.http.MultiPartByteRanges.PathContentSource
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source
- Enclosing class:
MultiPartByteRanges
public static class MultiPartByteRanges.PathContentSource
extends org.eclipse.jetty.io.content.PathContentSource
A specialized PathContentSource
whose content is sliced by a byte range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isReadComplete
(long read) protected SeekableByteChannel
open()
protected int
read
(SeekableByteChannel channel, ByteBuffer byteBuffer) Methods inherited from class org.eclipse.jetty.io.content.PathContentSource
demand, fail, getBufferSize, getLength, getPath, isUseDirectByteBuffers, read, rewind, setBufferSize, setUseDirectByteBuffers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.io.Content.Source
fail
-
Constructor Details
-
PathContentSource
-
-
Method Details
-
open
- Overrides:
open
in classorg.eclipse.jetty.io.content.PathContentSource
- Throws:
IOException
-
read
- Overrides:
read
in classorg.eclipse.jetty.io.content.PathContentSource
- Throws:
IOException
-
isReadComplete
protected boolean isReadComplete(long read) - Overrides:
isReadComplete
in classorg.eclipse.jetty.io.content.PathContentSource
-