public interface Channel extends java.io.Closeable, SSHPacketHandler, ErrorNotifiable
Modifier and Type | Interface and Description |
---|---|
static interface |
Channel.Direct
Direct channels are those that are initiated by us.
|
static interface |
Channel.Forwarded
Forwarded channels are those that are initiated by the server.
|
ErrorNotifiable.Util
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this channel.
|
boolean |
getAutoExpand() |
int |
getID() |
java.io.InputStream |
getInputStream() |
int |
getLocalMaxPacketSize() |
long |
getLocalWinSize() |
LoggerFactory |
getLoggerFactory()
Get the LoggerFactory associated with the SSH client.
|
java.io.OutputStream |
getOutputStream() |
int |
getRecipient() |
java.nio.charset.Charset |
getRemoteCharset() |
int |
getRemoteMaxPacketSize() |
long |
getRemoteWinSize() |
java.lang.String |
getType() |
boolean |
isEOF()
Returns whether EOF has been received.
|
boolean |
isOpen() |
void |
join() |
void |
join(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
setAutoExpand(boolean autoExpand)
Set whether local window should automatically expand when data is received, irrespective of whether data has been
read from that stream.
|
handle
notifyError
void close() throws TransportException, ConnectionException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
TransportException
ConnectionException
boolean getAutoExpand()
setAutoExpand(boolean)
int getID()
java.io.InputStream getInputStream()
InputStream
for this channel.int getLocalMaxPacketSize()
long getLocalWinSize()
java.io.OutputStream getOutputStream()
OutputStream
for this channel.int getRecipient()
java.nio.charset.Charset getRemoteCharset()
int getRemoteMaxPacketSize()
long getRemoteWinSize()
java.lang.String getType()
boolean isOpen()
void setAutoExpand(boolean autoExpand)
InputStream
.autoExpand
- whether local windows should automatically expandvoid join() throws ConnectionException
ConnectionException
void join(long timeout, java.util.concurrent.TimeUnit unit) throws ConnectionException
ConnectionException
boolean isEOF()
LoggerFactory getLoggerFactory()