public final class ChannelInputStream extends java.io.InputStream implements ErrorNotifiable
InputStream for channels. Can receive data into its buffer for serving to
readers.ErrorNotifiable.Util| Constructor and Description |
|---|
ChannelInputStream(Channel chan,
Transport trans,
Window.Local win) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
eof() |
void |
notifyError(SSHException error)
Notifies this object of an
error. |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
receive(byte[] data,
int offset,
int len) |
java.lang.String |
toString() |
public ChannelInputStream(Channel chan, Transport trans, Window.Local win)
public int available()
available in class java.io.InputStreampublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreampublic void eof()
public void notifyError(SSHException error)
ErrorNotifiableerror.notifyError in interface ErrorNotifiablepublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void receive(byte[] data,
int offset,
int len)
throws ConnectionException,
TransportException
public java.lang.String toString()
toString in class java.lang.Object