Package com.sshtools.j2ssh.connection
Class ChannelInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.sshtools.j2ssh.connection.ChannelInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ChannelInputStream extends java.io.InputStream
- Version:
- $Revision: 1.35 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description ChannelInputStream(SshMessageStore messageStore)
Creates a new ChannelInputStream object.ChannelInputStream(SshMessageStore messageStore, java.lang.Integer type)
Creates a new ChannelInputStream object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
void
interrupt()
boolean
isClosed()
int
read()
int
read(byte[] b, int off, int len)
void
setBlockInterrupt(int interrupt)
-
-
-
Constructor Detail
-
ChannelInputStream
public ChannelInputStream(SshMessageStore messageStore, java.lang.Integer type)
Creates a new ChannelInputStream object.- Parameters:
messageStore
-type
-
-
ChannelInputStream
public ChannelInputStream(SshMessageStore messageStore)
Creates a new ChannelInputStream object.- Parameters:
messageStore
-
-
-
Method Detail
-
available
public int available()
- Overrides:
available
in classjava.io.InputStream
- Returns:
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
isClosed
public boolean isClosed()
- Returns:
-
setBlockInterrupt
public void setBlockInterrupt(int interrupt)
- Parameters:
interrupt
-
-
interrupt
public void interrupt()
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Returns:
- Throws:
java.io.IOException
java.io.InterruptedIOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Parameters:
b
-off
-len
-- Returns:
- Throws:
java.io.IOException
java.io.IOException
-
-