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(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 IOException
This data sink guarantees to not hold references to the provided buffer after this method terminates.
IOException
void consume(ByteBuffer buf) throws IOException
This data sink guarantees to not hold references to the provided buffer after this method terminates.
IOException
Copyright © 2016. All rights reserved.