com.sshtools.j2ssh.connection
Class IOChannel

java.lang.Object
  extended by com.sshtools.j2ssh.connection.Channel
      extended by com.sshtools.j2ssh.connection.IOChannel
Direct Known Subclasses:
ForwardingIOChannel, SessionChannelClient, SessionChannelServer

public abstract class IOChannel
extends Channel

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

Field Summary
protected  java.io.InputStream boundInputStream
           
protected  java.io.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
 
Constructor Summary
IOChannel()
           
 
Method Summary
 void bindInputStream(java.io.InputStream boundInputStream)
           
 void bindOutputStream(java.io.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, isClosed, isLocalEOF, isOpen, isRemoteEOF, onChannelOpen, onChannelRequest, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setName, setRemoteEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected ChannelInputStream in

out

protected ChannelOutputStream out

boundInputStream

protected java.io.InputStream boundInputStream

boundOutputStream

protected java.io.OutputStream boundOutputStream

ios

protected IOStreamConnector ios
Constructor Detail

IOChannel

public IOChannel()
Method Detail

init

protected void init(ConnectionProtocol connection,
                    long localChannelId,
                    long senderChannelId,
                    long initialWindowSize,
                    long maximumPacketSize)
             throws java.io.IOException
Overrides:
init in class Channel
Parameters:
connection -
localChannelId -
senderChannelId -
initialWindowSize -
maximumPacketSize -
Throws:
java.io.IOException

open

protected void open()
             throws java.io.IOException
Overrides:
open in class Channel
Throws:
java.io.IOException

getInputStream

public ChannelInputStream getInputStream()
Returns:

getOutputStream

public ChannelOutputStream getOutputStream()
Returns:

onChannelData

protected void onChannelData(SshMsgChannelData msg)
                      throws java.io.IOException
Specified by:
onChannelData in class Channel
Parameters:
msg -
Throws:
java.io.IOException

setLocalEOF

public void setLocalEOF()
                 throws java.io.IOException
Overrides:
setLocalEOF in class Channel
Throws:
java.io.IOException

onChannelEOF

protected void onChannelEOF()
                     throws java.io.IOException
Specified by:
onChannelEOF in class Channel
Throws:
java.io.IOException

onChannelClose

protected void onChannelClose()
                       throws java.io.IOException
Specified by:
onChannelClose in class Channel
Throws:
java.io.IOException

onChannelExtData

protected void onChannelExtData(SshMsgChannelExtendedData msg)
                         throws java.io.IOException
Specified by:
onChannelExtData in class Channel
Parameters:
msg -
Throws:
java.io.IOException

bindOutputStream

public void bindOutputStream(java.io.OutputStream boundOutputStream)
                      throws java.io.IOException
Throws:
java.io.IOException

bindInputStream

public void bindInputStream(java.io.InputStream boundInputStream)
                     throws java.io.IOException
Parameters:
boundInputStream -
Throws:
java.io.IOException


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