Package com.sshtools.j2ssh.connection
Class ChannelInputStream
java.lang.Object
java.io.InputStream
com.sshtools.j2ssh.connection.ChannelInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Version:
- $Revision: 1.35 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionChannelInputStream
(SshMessageStore messageStore) Creates a new ChannelInputStream object.ChannelInputStream
(SshMessageStore messageStore, Integer type) Creates a new ChannelInputStream object. -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ChannelInputStream
Creates a new ChannelInputStream object.- Parameters:
messageStore
-type
-
-
ChannelInputStream
Creates a new ChannelInputStream object.- Parameters:
messageStore
-
-
-
Method Details
-
available
public int available()- Overrides:
available
in classInputStream
- Returns:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
isClosed
public boolean isClosed()- Returns:
-
setBlockInterrupt
public void setBlockInterrupt(int interrupt) - Parameters:
interrupt
-
-
interrupt
public void interrupt() -
read
- Specified by:
read
in classInputStream
- Returns:
- Throws:
IOException
InterruptedIOException
-
read
- Overrides:
read
in classInputStream
- Parameters:
b
-off
-len
-- Returns:
- Throws:
IOException
IOException
-