| Modifier and Type | Class and Description |
|---|---|
| protected static enum | |
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| private Buffer | |
| private int | |
| private final Object | |
| private final AbstractChannel | |
| private final byte | |
| private final boolean | |
| private boolean | |
| private int | |
| protected final Logger | |
| private final Duration | |
| private final AtomicBoolean | |
| protected final AtomicReference | |
| private final ChannelStreamWriter | |
| private final RemoteWindow |
| Access | Constructor and Description |
|---|---|
| public | ChannelOutputStream(AbstractChannel channel, RemoteWindow remoteWindow, Logger log, byte cmd, boolean eofOnClose)
|
| public | ChannelOutputStream(AbstractChannel channel, RemoteWindow remoteWindow, long maxWaitTimeout, Logger log, byte cmd, boolean eofOnClose)
|
| public | ChannelOutputStream(AbstractChannel channel, RemoteWindow remoteWindow, Duration maxWaitTimeout, Logger log, byte cmd, boolean eofOnClose)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this channel. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public AbstractChannel | |
| public byte | Returns: EitherSSH_MSG_CHANNEL_DATA or
SSH_MSG_CHANNEL_EXTENDED_DATA indicating the output
stream type
|
| public boolean | |
| public boolean | |
| public boolean | |
| protected Buffer | |
| public void | |
| public String | |
| public void | write(int
the w)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public synchronized void | write(byte[]
the data. buf, int the start offset in the data. s, int the number of bytes to write. l)Overrides java. Writes |
| buffer | back to summary |
|---|---|
| private Buffer buffer | |
| bufferLength | back to summary |
|---|---|
| private int bufferLength | |
| bufferLock | back to summary |
|---|---|
| private final Object bufferLock | |
| channelInstance | back to summary |
|---|---|
| private final AbstractChannel channelInstance | |
| cmd | back to summary |
|---|---|
| private final byte cmd | |
| eofOnClose | back to summary |
|---|---|
| private final boolean eofOnClose | |
| isFlushing | back to summary |
|---|---|
| private boolean isFlushing | |
| lastSize | back to summary |
|---|---|
| private int lastSize | |
| log | back to summary |
|---|---|
| protected final Logger log | |
| maxWaitTimeout | back to summary |
|---|---|
| private final Duration maxWaitTimeout | |
| noDelay | back to summary |
|---|---|
| private final AtomicBoolean noDelay | |
| openState | back to summary |
|---|---|
| protected final AtomicReference<ChannelOutputStream. | |
| packetWriter | back to summary |
|---|---|
| private final ChannelStreamWriter packetWriter | |
| remoteWindow | back to summary |
|---|---|
| private final RemoteWindow remoteWindow | |
| ChannelOutputStream | back to summary |
|---|---|
| public ChannelOutputStream(AbstractChannel channel, RemoteWindow remoteWindow, Logger log, byte cmd, boolean eofOnClose) | |
| ChannelOutputStream | back to summary |
|---|---|
| public ChannelOutputStream(AbstractChannel channel, RemoteWindow remoteWindow, long maxWaitTimeout, Logger log, byte cmd, boolean eofOnClose) | |
| ChannelOutputStream | back to summary |
|---|---|
| public ChannelOutputStream(AbstractChannel channel, RemoteWindow remoteWindow, Duration maxWaitTimeout, Logger log, byte cmd, boolean eofOnClose) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this channel. After a channel is closed, any further attempt to invoke I/O
operations upon it will cause a If this channel is already closed then invoking this method has no effect. This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.
| |
| 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.
| |
| getChannel | back to summary |
|---|---|
| public AbstractChannel getChannel() Implements org.
| |
| getCommandType | back to summary |
|---|---|
public byte getCommandType()
| |
| isEofOnClose | back to summary |
|---|---|
| public boolean isEofOnClose() | |
| isNoDelay | back to summary |
|---|---|
| public boolean isNoDelay() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| newBuffer | back to summary |
|---|---|
| protected Buffer newBuffer(int size) | |
| setNoDelay | back to summary |
|---|---|
| public void setNoDelay(boolean noDelay) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| write | back to summary |
|---|---|
| public void write(int w) 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[] buf, int s, int l) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ChannelOutputStream. | |
| public static final ChannelOutputStream. | |
| public static final ChannelOutputStream. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ChannelOutputStream. | |
| public static ChannelOutputStream. |
| CLOSED | back to summary |
|---|---|
| public static final ChannelOutputStream. | |
| CLOSING | back to summary |
|---|---|
| public static final ChannelOutputStream. | |
| OPEN | back to summary |
|---|---|
| public static final ChannelOutputStream. | |
| OpenState | back to summary |
|---|---|
| private OpenState() | |
| valueOf | back to summary |
|---|---|
| public static ChannelOutputStream. | |
| values | back to summary |
|---|---|
| public static ChannelOutputStream. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ChannelOutputStream. | |
| public static final ChannelOutputStream. | |
| public static final ChannelOutputStream. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ChannelOutputStream. | |
| public static ChannelOutputStream. |
| BUFFERED | back to summary |
|---|---|
| public static final ChannelOutputStream. | |
| NEED_FLUSH | back to summary |
|---|---|
| public static final ChannelOutputStream. | |
| NEED_SPACE | back to summary |
|---|---|
| public static final ChannelOutputStream. | |
| WriteState | back to summary |
|---|---|
| private WriteState() | |
| valueOf | back to summary |
|---|---|
| public static ChannelOutputStream. | |
| values | back to summary |
|---|---|
| public static ChannelOutputStream. | |