| java.lang.Object |
| ↳ |
java.io.OutputStream |
| |
↳ |
net.schmizz.sshj.connection.channel.ChannelOutputStream |
Class Overview
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().
Summary
| Public Methods |
|
synchronized
void
|
close()
|
|
synchronized
void
|
flush()
Send all data currently buffered.
|
|
synchronized
void
|
notifyError(SSHException error)
Notifies this object of an error.
|
|
synchronized
void
|
setClosed()
|
|
String
|
toString()
|
|
synchronized
void
|
write(byte[] data, int off, int len)
|
|
synchronized
void
|
write(int w)
|
Fields
private
final
ChannelOutputStream.DataBuffer
buffer
Public Constructors
Public Methods
public
synchronized
void
close
()
public
synchronized
void
flush
()
Send all data currently buffered. If window space is exhausted in the process, this will block
until it is expanded by the server.
public
synchronized
void
notifyError
(SSHException error)
Notifies this object of an error.
public
synchronized
void
setClosed
()
public
String
toString
()
public
synchronized
void
write
(byte[] data, int off, int len)
public
synchronized
void
write
(int w)