| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private ByteBuffer | |
| private byte[] | |
| private final WritableByteChannel |
| Access | Constructor and Description |
|---|---|
| pack-priv | ChannelOutputStream(WritableByteChannel ch)
Initialize a ChannelOutputStream that writes to the given channel. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv WritableByteChannel | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public synchronized void | write(int b)
Implements abstract java. Writes the specified byte to this output stream. |
| public synchronized void | write(byte[] bs, int off, int len)
Overrides java. Writes |
| private void |
| b1 | back to summary |
|---|---|
| private byte[] b1 | |
| bb | back to summary |
|---|---|
| private ByteBuffer bb | |
| bs | back to summary |
|---|---|
| private byte[] bs | |
| ch | back to summary |
|---|---|
| private final WritableByteChannel ch | |
| ChannelOutputStream | back to summary |
|---|---|
| pack-priv ChannelOutputStream(WritableByteChannel ch) Initialize a ChannelOutputStream that writes to the given channel. | |
| channel | back to summary |
|---|---|
pack-priv WritableByteChannel channel()
| |
| close | back to summary |
|---|---|
| public void close() throws IOException 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 synchronized 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 synchronized void write(byte[] bs, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| writeFully | back to summary |
|---|---|
| private void writeFully(ByteBuffer bb) throws IOException Write all remaining bytes in buffer to the channel. If the channel is selectable then it must be configured blocking. | |