public final class ChannelOutputStream extends OutputStream implements ErrorNotifiable
OutputStream for channels. Buffers data upto the remote window's maximum packet size. Data can also be
flushed via flush() and is also flushed on close().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. |
String |
toString() |
void |
write(byte[] data,
int off,
int len) |
void |
write(int w) |
writepublic ChannelOutputStream(Channel chan, Transport trans, Window.Remote win)
public void write(int w)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] data,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void notifyError(SSHException error)
ErrorNotifiableerror.notifyError in interface ErrorNotifiablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2009–2014. All rights reserved.