Package com.sshtools.j2ssh.connection
Class ChannelOutputStream
java.lang.Object
java.io.OutputStream
com.sshtools.j2ssh.connection.ChannelOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Version:
- $Revision: 1.27 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionChannelOutputStream
(Channel channel) Creates a new ChannelOutputStream object.ChannelOutputStream
(Channel channel, Integer type) Creates a new ChannelOutputStream object. -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
ChannelOutputStream
Creates a new ChannelOutputStream object.- Parameters:
channel
-type
-
-
ChannelOutputStream
Creates a new ChannelOutputStream object.- Parameters:
channel
-
-
-
Method Details
-
isClosed
public boolean isClosed()- Returns:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Parameters:
b
-off
-len
-- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Parameters:
b
-- Throws:
IOException
-