public final class ChannelOutputStream extends java.io.OutputStream implements ErrorNotifiable
ErrorNotifiable.Util| Constructor and Description |
|---|
ChannelOutputStream(Channel chan,
Transport trans,
Window.Remote win) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Send all data currently buffered.
|
void |
notifyError(SSHException error)
Notifies this object of an
error. |
java.lang.String |
toString() |
void |
write(byte[] data,
int off,
int len) |
void |
write(int w) |
public ChannelOutputStream(Channel chan, Transport trans, Window.Remote win)
public void write(int w)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] data,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void notifyError(SSHException error)
ErrorNotifiableerror.notifyError in interface ErrorNotifiablepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object