public interface DataSink
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this data sink and releases any system
resources associated with this sink.
|
void |
write(Buffer buffer)
Writes the specified buffer to this data sink.
|
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.