NIOOutputStream implementation.
| Modifier and Type | Field and Description |
|---|---|
| private volatile OutputBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canWrite(final int length)
Implements org.
Deprecated
the
length parameter will be ignored. Pls use canWrite().
|
| public boolean | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| private boolean | |
| public void | notifyCanWrite(final WriteHandler handler, final int length)
Implements org.
Deprecated
the
length parameter will be ignored.
Instructs the |
| public void | notifyCanWrite(final WriteHandler handler)
Implements org. Instructs the |
| public void | |
| public void | |
| public void | write(final int b)
Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(final byte[] b)
Overrides java. Writes |
| public void | write(final byte[] b, final int off, final int len)
Overrides java. Writes |
| public void | write(final Buffer buffer)
Implements org. Writes the contents of the specified |
| outputBuffer | back to summary |
|---|---|
| private volatile OutputBuffer outputBuffer | |
| NIOOutputStreamImpl | back to summary |
|---|---|
| pack-priv NIOOutputStreamImpl() | |
| canWrite | back to summary |
|---|---|
| public boolean canWrite(final int length) Implements org. Deprecated the
| |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements org.
| |
| 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
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| initialized | back to summary |
|---|---|
| private boolean initialized() | |
| notifyCanWrite | back to summary |
|---|---|
| public void notifyCanWrite(final WriteHandler handler, final int length) Implements org. Doc from org. Deprecated the Instructs the
| |
| notifyCanWrite | back to summary |
|---|---|
| public void notifyCanWrite(final WriteHandler handler) Implements org. Doc from org. Instructs the
| |
| recycle | back to summary |
|---|---|
| public void recycle() Implements org.
| |
| setOutputBuffer | back to summary |
|---|---|
| public void setOutputBuffer(final OutputBuffer outputBuffer) | |
| write | back to summary |
|---|---|
| public void write(final 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(final byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(final Buffer buffer) throws IOException Implements org. Doc from org. Writes the contents of the specified
| |