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. |
| public void | write(int
the b)byte.Implements abstract java. |
| 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. len bytes from the specified byte array
starting at offset off to this output stream.
|
| 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
| |