public final class ChannelInputStream extends 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) |
String |
toString() |
mark, markSupported, read, reset, skippublic ChannelInputStream(Channel chan, Transport trans, Window.Local win)
public int available()
available in class InputStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic void eof()
public void notifyError(SSHException error)
ErrorNotifiableerror.notifyError in interface ErrorNotifiablepublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void receive(byte[] data,
int offset,
int len)
throws ConnectionException,
TransportException
Copyright © 2009–2014. All rights reserved.