Package com.sshtools.j2ssh.connection
Class IOChannel
java.lang.Object
com.sshtools.j2ssh.connection.Channel
com.sshtools.j2ssh.connection.IOChannel
- Direct Known Subclasses:
ForwardingIOChannel
,SessionChannelClient
,SessionChannelServer
- Version:
- $Revision: 1.16 $
- Author:
- $author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InputStream
protected OutputStream
protected ChannelInputStream
protected IOStreamConnector
protected ChannelOutputStream
Fields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindInputStream
(InputStream boundInputStream) void
bindOutputStream
(OutputStream boundOutputStream) protected void
init
(ConnectionProtocol connection, long localChannelId, long senderChannelId, long initialWindowSize, long maximumPacketSize) protected void
protected void
protected void
protected void
protected void
open()
void
Methods inherited from class com.sshtools.j2ssh.connection.Channel
addEventListener, close, finalizeClose, getChannelConfirmationData, getChannelOpenData, getChannelType, getLocalChannelId, getLocalPacketSize, getLocalWindow, getMaximumPacketSize, getMaximumWindowSpace, getMinimumWindowSpace, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, onChannelOpen, onChannelRequest, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setName, setRemoteEOF
-
Field Details
-
in
-
out
-
boundInputStream
-
boundOutputStream
-
ios
-
-
Constructor Details
-
IOChannel
public IOChannel()
-
-
Method Details
-
init
protected void init(ConnectionProtocol connection, long localChannelId, long senderChannelId, long initialWindowSize, long maximumPacketSize) throws IOException - Overrides:
init
in classChannel
- Parameters:
connection
-localChannelId
-senderChannelId
-initialWindowSize
-maximumPacketSize
-- Throws:
IOException
-
open
- Overrides:
open
in classChannel
- Throws:
IOException
-
getInputStream
- Returns:
-
getOutputStream
- Returns:
-
onChannelData
- Specified by:
onChannelData
in classChannel
- Parameters:
msg
-- Throws:
IOException
-
setLocalEOF
- Overrides:
setLocalEOF
in classChannel
- Throws:
IOException
-
onChannelEOF
- Specified by:
onChannelEOF
in classChannel
- Throws:
IOException
-
onChannelClose
- Specified by:
onChannelClose
in classChannel
- Throws:
IOException
-
onChannelExtData
- Specified by:
onChannelExtData
in classChannel
- Parameters:
msg
-- Throws:
IOException
-
bindOutputStream
- Throws:
IOException
-
bindInputStream
- Parameters:
boundInputStream
-- Throws:
IOException
-