public interface DataSink
| Modifier and Type | Method and Description |
|---|---|
void |
consume(byte[] buf,
int offset,
int length)
Consumes the provided chunk of data.
|
void |
consume(java.nio.ByteBuffer buf)
Consumes all remaining data in the provided buffer and advances the buffer's position
to the buffer's limit.
|
void consume(byte[] buf,
int offset,
int length)
throws java.io.IOException
This data sink guarantees to not hold references to the provided buffer after this method terminates.
java.lang.IndexOutOfBoundsException - if offset or length are negative, or if
offset + length is greater than buf.length.java.io.IOExceptionvoid consume(java.nio.ByteBuffer buf)
throws java.io.IOException
This data sink guarantees to not hold references to the provided buffer after this method terminates.
java.io.IOException