Class ByteBufferRangeWriter
java.lang.Object
org.eclipse.jetty.server.resource.ByteBufferRangeWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RangeWriter
ByteBuffer based RangeWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
writeTo
(OutputStream outputStream, long skipTo, long length) Write the specific range (start, size) to the outputStream.
-
Constructor Details
-
ByteBufferRangeWriter
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
writeTo
Description copied from interface:RangeWriter
Write the specific range (start, size) to the outputStream.- Specified by:
writeTo
in 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
-