Class ChannelOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- net.schmizz.sshj.connection.channel.ChannelOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable,ErrorNotifiable
public final class ChannelOutputStream extends java.io.OutputStream implements ErrorNotifiable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.ErrorNotifiable
ErrorNotifiable.Util
-
-
Constructor Summary
Constructors Constructor Description ChannelOutputStream(Channel chan, Transport trans, Window.Remote win)
-
Method Summary
Modifier and Type Method Description voidclose()voidflush()Send all data currently buffered.voidnotifyError(SSHException error)Notifies this object of anerror.java.lang.StringtoString()voidwrite(byte[] data, int off, int len)voidwrite(int w)
-
-
-
Constructor Detail
-
ChannelOutputStream
public ChannelOutputStream(Channel chan, Transport trans, Window.Remote win)
-
-
Method Detail
-
write
public void write(int w) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] data, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
notifyError
public void notifyError(SSHException error)
Description copied from interface:ErrorNotifiableNotifies this object of anerror.- Specified by:
notifyErrorin interfaceErrorNotifiable
-
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
-
flush
public void flush() throws java.io.IOExceptionSend all data currently buffered. If window space is exhausted in the process, this will block until it is expanded by the server.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-