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, skip
public ChannelInputStream(Channel chan, Transport trans, Window.Local win)
public int available()
available
in class InputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
public void eof()
public void notifyError(SSHException error)
ErrorNotifiable
error
.notifyError
in interface ErrorNotifiable
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void receive(byte[] data, int offset, int len) throws ConnectionException, TransportException
Copyright © 2009–2014. All rights reserved.