Package com.sshtools.j2ssh.connection
Class ChannelOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.sshtools.j2ssh.connection.ChannelOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class ChannelOutputStream extends java.io.OutputStream- Version:
- $Revision: 1.27 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description ChannelOutputStream(Channel channel)Creates a new ChannelOutputStream object.ChannelOutputStream(Channel channel, java.lang.Integer type)Creates a new ChannelOutputStream object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisClosed()voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Constructor Detail
-
ChannelOutputStream
public ChannelOutputStream(Channel channel, java.lang.Integer type)
Creates a new ChannelOutputStream object.- Parameters:
channel-type-
-
ChannelOutputStream
public ChannelOutputStream(Channel channel)
Creates a new ChannelOutputStream object.- Parameters:
channel-
-
-
Method Detail
-
isClosed
public boolean isClosed()
- Returns:
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Parameters:
b-off-len-- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Parameters:
b-- Throws:
java.io.IOException
-
-