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 InputStreamprotected OutputStreamprotected ChannelInputStreamprotected IOStreamConnectorprotected ChannelOutputStreamFields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindInputStream(InputStream boundInputStream) voidbindOutputStream(OutputStream boundOutputStream) protected voidinit(ConnectionProtocol connection, long localChannelId, long senderChannelId, long initialWindowSize, long maximumPacketSize) protected voidprotected voidprotected voidprotected voidprotected voidopen()voidMethods 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:
initin classChannel- Parameters:
connection-localChannelId-senderChannelId-initialWindowSize-maximumPacketSize-- Throws:
IOException
-
open
- Overrides:
openin classChannel- Throws:
IOException
-
getInputStream
- Returns:
-
getOutputStream
- Returns:
-
onChannelData
- Specified by:
onChannelDatain classChannel- Parameters:
msg-- Throws:
IOException
-
setLocalEOF
- Overrides:
setLocalEOFin classChannel- Throws:
IOException
-
onChannelEOF
- Specified by:
onChannelEOFin classChannel- Throws:
IOException
-
onChannelClose
- Specified by:
onChannelClosein classChannel- Throws:
IOException
-
onChannelExtData
- Specified by:
onChannelExtDatain classChannel- Parameters:
msg-- Throws:
IOException
-
bindOutputStream
- Throws:
IOException
-
bindInputStream
- Parameters:
boundInputStream-- Throws:
IOException
-