Class ChannelInputStream
java.lang.Object
java.io.InputStream
net.schmizz.sshj.connection.channel.ChannelInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable, ErrorNotifiable
InputStream for channels. Can receive data into its buffer for serving to
readers.-
Nested Class Summary
Nested classes/interfaces inherited from interface ErrorNotifiable
ErrorNotifiable.Util -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voideof()voidnotifyError(SSHException error) Notifies this object of anerror.intread()intread(byte[] b, int off, int len) voidreceive(byte[] data, int offset, int len) toString()Methods inherited from class InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ChannelInputStream
-
-
Method Details
-
available
public int available()- Overrides:
availablein classInputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
eof
public void eof() -
notifyError
Description copied from interface:ErrorNotifiableNotifies this object of anerror.- Specified by:
notifyErrorin interfaceErrorNotifiable
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
receive
- Throws:
SSHException
-
toString
-