com.sshtools.j2ssh.connection

Class IOChannel

Known Direct Subclasses:
ForwardingIOChannel, SessionChannelClient, SessionChannelServer

public abstract class IOChannel
extends Channel

Version:
$Revision: 1.16 $
Author:
$author$

Field Summary

protected InputStream
boundInputStream
protected OutputStream
boundOutputStream
protected ChannelInputStream
in
protected IOStreamConnector
ios
protected ChannelOutputStream
out

Fields inherited from class com.sshtools.j2ssh.connection.Channel

connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state

Method Summary

void
bindInputStream(InputStream boundInputStream)
void
bindOutputStream(OutputStream boundOutputStream)
ChannelInputStream
getInputStream()
ChannelOutputStream
getOutputStream()
protected void
init(ConnectionProtocol connection, long localChannelId, long senderChannelId, long initialWindowSize, long maximumPacketSize)
protected void
onChannelClose()
protected void
onChannelData(SshMsgChannelData msg)
protected void
onChannelEOF()
protected void
onChannelExtData(SshMsgChannelExtendedData msg)
protected void
open()
void
setLocalEOF()

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, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpen, onChannelRequest, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF

Field Details

boundInputStream

protected InputStream boundInputStream

boundOutputStream

protected OutputStream boundOutputStream

in

protected ChannelInputStream in

ios

protected IOStreamConnector ios

out

protected ChannelOutputStream out

Method Details

bindInputStream

public void bindInputStream(InputStream boundInputStream)
            throws IOException
Parameters:
boundInputStream -

bindOutputStream

public void bindOutputStream(OutputStream boundOutputStream)
            throws IOException

getInputStream

public ChannelInputStream getInputStream()
Returns:

getOutputStream

public ChannelOutputStream getOutputStream()
Returns:

init

protected void init(ConnectionProtocol connection,
                    long localChannelId,
                    long senderChannelId,
                    long initialWindowSize,
                    long maximumPacketSize)
            throws IOException
Overrides:
init in interface Channel
Parameters:
connection -
localChannelId -
senderChannelId -
initialWindowSize -
maximumPacketSize -

onChannelClose

protected void onChannelClose()
            throws IOException
Overrides:
onChannelClose in interface Channel

onChannelData

protected void onChannelData(SshMsgChannelData msg)
            throws IOException
Overrides:
onChannelData in interface Channel
Parameters:
msg -

onChannelEOF

protected void onChannelEOF()
            throws IOException
Overrides:
onChannelEOF in interface Channel

onChannelExtData

protected void onChannelExtData(SshMsgChannelExtendedData msg)
            throws IOException
Overrides:
onChannelExtData in interface Channel
Parameters:
msg -

open

protected void open()
            throws IOException
Overrides:
open in interface Channel

setLocalEOF

public void setLocalEOF()
            throws IOException
Overrides:
setLocalEOF in interface Channel

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.