Modifier and Type | Class and Description |
---|---|
(package private) class |
InputStreamDataSink.DataInputStream |
Modifier and Type | Field and Description |
---|---|
protected CircularBuffer |
buffers |
private boolean |
closed |
private InputStreamDataSink.DataInputStream |
in |
Constructor and Description |
---|
InputStreamDataSink() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this data sink and releases any system
resources associated with this sink.
|
java.io.InputStream |
getInputStream() |
private boolean |
isClosed() |
private void |
setClosed() |
void |
write(Buffer buffer)
Writes the specified buffer to this data sink.
|
protected CircularBuffer buffers
private InputStreamDataSink.DataInputStream in
private boolean closed
public void write(Buffer buffer) throws java.io.IOException
DataSink
buffer.getOffset()
might
return -1 if the transfer mode used does not support
data offsets, for example stream transfer mode.public void close() throws java.io.IOException
DataSink
private void setClosed()
private boolean isClosed()
public java.io.InputStream getInputStream()