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 Details

    • PathContentSource

      public PathContentSource(Path path, ByteRange byteRange)
  • Method Details

    • open

      protected SeekableByteChannel open() throws IOException
      Overrides:
      open in class org.eclipse.jetty.io.content.PathContentSource
      Throws:
      IOException
    • read

      protected int read(SeekableByteChannel channel, ByteBuffer byteBuffer) throws IOException
      Overrides:
      read in class org.eclipse.jetty.io.content.PathContentSource
      Throws:
      IOException
    • isReadComplete

      protected boolean isReadComplete(long read)
      Overrides:
      isReadComplete in class org.eclipse.jetty.io.content.PathContentSource