| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final int | |
| private IOException | |
| private final OutputStream | |
| private final ByteBuffer | |
| private final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| protected synchronized void | |
| public synchronized void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| pack-priv synchronized void | |
| public OutputStream | |
| public synchronized int | read(long timeout, boolean isPeek)
Implements abstract jdk.
|
| public synchronized int | readBuffered(byte[] b, int off, int len, long timeout)
Overrides jdk.
|
| private static boolean | |
| public synchronized void | |
| private int | |
| pack-priv synchronized void |
| closed | back to summary |
|---|---|
| private boolean closed | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_BUFFER_SIZE | |
| ioException | back to summary |
|---|---|
| private IOException ioException | |
| output | back to summary |
|---|---|
| private final OutputStream output | |
| readBuffer | back to summary |
|---|---|
| private final ByteBuffer readBuffer | |
| writeBuffer | back to summary |
|---|---|
| private final ByteBuffer writeBuffer | |
| NonBlockingPumpInputStream | back to summary |
|---|---|
| public NonBlockingPumpInputStream() | |
| NonBlockingPumpInputStream | back to summary |
|---|---|
| public NonBlockingPumpInputStream(int bufferSize) | |
| available | back to summary |
|---|---|
| public synchronized int available() Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| checkIoException | back to summary |
|---|---|
| protected synchronized void checkIoException() throws IOException | |
| close | back to summary |
|---|---|
| public synchronized void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| flush | back to summary |
|---|---|
| pack-priv synchronized void flush() | |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() | |
| read | back to summary |
|---|---|
| public synchronized int read(long timeout, boolean isPeek) throws IOException Implements abstract jdk.
| |
| readBuffered | back to summary |
|---|---|
| public synchronized int readBuffered(byte[] b, int off, int len, long timeout) throws IOException Overrides jdk.
| |
| rewind | back to summary |
|---|---|
| private static boolean rewind(ByteBuffer buffer, ByteBuffer other) | |
| setIoException | back to summary |
|---|---|
| public synchronized void setIoException(IOException exception) | |
| wait | back to summary |
|---|---|
| private int wait(ByteBuffer buffer, long timeout) throws IOException | |
| write | back to summary |
|---|---|
| pack-priv synchronized void write(byte[] cbuf, int off, int len) throws IOException | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| public void | write(int b)
Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[] cbuf, int off, int len)
Overrides java. Writes |
| NbpOutputStream | back to summary |
|---|---|
| private NbpOutputStream() | |
| 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.
| |
| 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[] cbuf, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |