Class ByteBufferRangeWriter
java.lang.Object
org.eclipse.jetty.server.resource.ByteBufferRangeWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,RangeWriter
ByteBuffer based RangeWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidwriteTo(OutputStream outputStream, long skipTo, long length) Write the specific range (start, size) to the outputStream.
-
Constructor Details
-
ByteBufferRangeWriter
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
writeTo
Description copied from interface:RangeWriterWrite the specific range (start, size) to the outputStream.- Specified by:
writeToin interfaceRangeWriter- Parameters:
outputStream- the stream to write toskipTo- the offset / skip-to / seek-to / position in the resource to start the write fromlength- the size of the section to write- Throws:
IOException
-