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.OutputStream
java.io.IOException
public void write(byte[] data, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void notifyError(SSHException error)
ErrorNotifiable
error
.notifyError
in interface ErrorNotifiable
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object