| Modifier and Type | Field | Description |
|---|---|---|
protected CircularBuffer |
buffers |
| Constructor | Description |
|---|---|
InputStreamDataSink() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes this data sink and releases any system
resources associated with this sink.
|
InputStream |
getInputStream() |
|
void |
write(Buffer buffer) |
Writes the specified buffer to this data sink.
|
protected CircularBuffer buffers
public void write(Buffer buffer) throws IOException
DataSinkbuffer.getOffset() might
return -1 if the transfer mode used does not support
data offsets, for example stream transfer mode.write in interface DataSinkbuffer - the data buffer to write.IOException - if an I/O error occurs.public void close()
throws IOException
DataSinkclose in interface DataSinkIOException - if an I/O error occurs.public InputStream getInputStream()
Copyright © 2018. All rights reserved.