OutputStream implementation which writes out ByteBuffers to a consumer.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | BufferPipeOutputStream.
A buffer writer for an |
| Modifier and Type | Field and Description |
|---|---|
| private Pooled | |
| private final BufferPipeOutputStream. | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | BufferPipeOutputStream(final BufferPipeOutputStream.
the writer task bufferWriterTaskConstruct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public Pooled | |
| private void | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| private static IOException | |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| private void | |
| private Pooled | |
| private void | |
| private void | send(Pooled<ByteBuffer> buffer, boolean eof)
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public void | write(final int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(final byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| buffer | back to summary |
|---|---|
| private Pooled<ByteBuffer> buffer
References Deprecated
See corresponding docs for further information. | |
| bufferWriterTask | back to summary |
|---|---|
| private final BufferPipeOutputStream. | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| BufferPipeOutputStream | back to summary |
|---|---|
| public BufferPipeOutputStream(final BufferPipeOutputStream. Construct a new instance. The internal buffers will have a capacity of
| |
| breakPipe | back to summary |
|---|---|
| public Pooled References Deprecated
See corresponding docs for further information. Break the pipe and return any filling pooled buffer. Sets the stream to an EOF condition. Callers to this
method should ensure that any threads blocked on
| |
| checkClosed | back to summary |
|---|---|
| private void checkClosed() throws IOException | |
| 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
| |
| closed | back to summary |
|---|---|
| private static IOException closed() | |
| 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.
| |
| flush | back to summary |
|---|---|
| private void flush(boolean eof) throws IOException | |
| getBuffer | back to summary |
|---|---|
| private Pooled References Deprecated
See corresponding docs for further information. | |
| send | back to summary |
|---|---|
| private void send(boolean eof) throws IOException | |
| send | back to summary |
|---|---|
| private void send(Pooled<ByteBuffer> buffer, boolean eof) throws IOException
References Deprecated
See corresponding docs for further information. | |
| 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, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
BufferPipeOutputStream.
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Pooled<ByteBuffer>
the buffer to send pooledBuffer, boolean true if this is the last buffer which will be sent
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
Accept a buffer. |
| public void | flush()
Redeclares java. Flushes this stream by writing any buffered output to the underlying stream. |
| public Pooled |
| accept | back to summary |
|---|---|
| public void accept(Pooled<ByteBuffer> pooledBuffer, boolean eof) throws IOException
References Deprecated
See corresponding docs for further information. Accept a buffer. If this is the last buffer that will be sent, the
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Redeclares java. Flushes this stream by writing any buffered output to the underlying stream. This method should block until the data is fully flushed. This method may also block until some other condition, such as flow control, is met.
| |
| getBuffer | back to summary |
|---|---|
| public Pooled References Deprecated
See corresponding docs for further information. Get a new buffer to be filled. The new buffer may, for example, include a prepended header. This method may block until a buffer is available or until some other condition, such as flow control, is met.
| |