OutputStream that writes to a DataBuffer.
DataBuffer#asOutputStream()
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final DataBuffer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| closed | back to summary |
|---|---|
| private boolean closed | |
| dataBuffer | back to summary |
|---|---|
| private final DataBuffer dataBuffer | |
| DataBufferOutputStream | back to summary |
|---|---|
| public DataBufferOutputStream(DataBuffer dataBuffer) | |
| checkClosed | back to summary |
|---|---|
| private void checkClosed() throws IOException | |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |