Interface RangeWriter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
ByteBufferRangeWriter,InputStreamRangeWriter,SeekableByteChannelRangeWriter
public interface RangeWriter extends java.io.CloseableInterface for writing sections (ranges) of a single resource (SeekableByteChannel, Resource, etc) to an outputStream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwriteTo(java.io.OutputStream outputStream, long skipTo, long length)Write the specific range (start, size) to the outputStream.
-
-
-
Method Detail
-
writeTo
void writeTo(java.io.OutputStream outputStream, long skipTo, long length) throws java.io.IOExceptionWrite 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:
java.io.IOException
-
-