OutputStream
| Modifier and Type | Field and Description |
|---|---|
| private final RetainableByteBuffer | |
| private final int | |
| private long | |
| private Callback | |
| private boolean | |
| private final CoreSession | |
| private long | |
| private final AutoLock | |
| private static final Logger | |
| private byte |
| Access | Constructor and Description |
|---|---|
| public |
| 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. |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | |
| pack-priv void | |
| public void | write(byte[]
the data. bytes, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void |
| buffer | back to summary |
|---|---|
| private final RetainableByteBuffer buffer | |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| bytesSent | back to summary |
|---|---|
| private long bytesSent | |
| callback | back to summary |
|---|---|
| private Callback callback | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| coreSession | back to summary |
|---|---|
| private final CoreSession coreSession | |
| frameCount | back to summary |
|---|---|
| private long frameCount | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| messageOpCode | back to summary |
|---|---|
| private byte messageOpCode | |
| MessageOutputStream | back to summary |
|---|---|
| public MessageOutputStream(CoreSession coreSession, ByteBufferPool bufferPool) | |
| 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.
| |
| flush | back to summary |
|---|---|
| private void flush(boolean fin) throws IOException | |
| notifyFailure | back to summary |
|---|---|
| private void notifyFailure(Throwable failure) | |
| notifySuccess | back to summary |
|---|---|
| private void notifySuccess() | |
| send | back to summary |
|---|---|
| private void send(ByteBuffer data) throws IOException | |
| setCallback | back to summary |
|---|---|
| public void setCallback(Callback callback) | |
| setMessageType | back to summary |
|---|---|
| pack-priv void setMessageType(byte opcode) | |
| write | back to summary |
|---|---|
| public void write(byte[] bytes, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| 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(ByteBuffer buffer) throws IOException | |