public interface DataSink
void write(Buffer buffer) throws IOException
buffer.getOffset()
might
return -1 if the transfer mode used does not support
data offsets, for example stream transfer mode.buffer
- the data buffer to write.IOException
- if an I/O error occurs.void close() throws IOException
IOException
- if an I/O error occurs.Copyright © 2015. All rights reserved.