public abstract class IOChannel extends Channel
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
boundInputStream |
protected java.io.OutputStream |
boundOutputStream |
protected ChannelInputStream |
in |
protected IOStreamConnector |
ios |
protected ChannelOutputStream |
out |
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
Constructor and Description |
---|
IOChannel() |
Modifier and Type | Method and Description |
---|---|
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() |
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
protected ChannelInputStream in
protected ChannelOutputStream out
protected java.io.InputStream boundInputStream
protected java.io.OutputStream boundOutputStream
protected IOStreamConnector ios
protected void init(ConnectionProtocol connection, long localChannelId, long senderChannelId, long initialWindowSize, long maximumPacketSize) throws java.io.IOException
protected void open() throws java.io.IOException
public ChannelInputStream getInputStream()
public ChannelOutputStream getOutputStream()
protected void onChannelData(SshMsgChannelData msg) throws java.io.IOException
onChannelData
in class Channel
msg
- java.io.IOException
public void setLocalEOF() throws java.io.IOException
setLocalEOF
in class Channel
java.io.IOException
protected void onChannelEOF() throws java.io.IOException
onChannelEOF
in class Channel
java.io.IOException
protected void onChannelClose() throws java.io.IOException
onChannelClose
in class Channel
java.io.IOException
protected void onChannelExtData(SshMsgChannelExtendedData msg) throws java.io.IOException
onChannelExtData
in class Channel
msg
- java.io.IOException
public void bindOutputStream(java.io.OutputStream boundOutputStream) throws java.io.IOException
java.io.IOException
public void bindInputStream(java.io.InputStream boundInputStream) throws java.io.IOException
boundInputStream
- java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.