public class ByteBufferRangeWriter extends java.lang.Object implements RangeWriter
Constructor and Description |
---|
ByteBufferRangeWriter(java.nio.ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeTo(java.io.OutputStream outputStream,
long skipTo,
long length)
Write the specific range (start, size) to the outputStream.
|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void writeTo(java.io.OutputStream outputStream, long skipTo, long length) throws java.io.IOException
RangeWriter
writeTo
in interface RangeWriter
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 writejava.io.IOException
Copyright © 1995–2020 Webtide. All rights reserved.