Interface RangeWriter
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Implementing Classes:
ByteBufferRangeWriter, InputStreamRangeWriter, SeekableByteChannelRangeWriter
Interface for writing sections (ranges) of a single resource (SeekableByteChannel, Resource, etc) to an outputStream.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwriteTo(OutputStream outputStream, long skipTo, long length) Write the specific range (start, size) to the outputStream.
-
Method Details
-
writeTo
Write the specific range (start, size) to the outputStream.- 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
-