Channel.GetOutputStreamResult

public static interface Channel.GetOutputStreamResult implements Releasable Result

Public Method Summary

abstract OutputStream
getOutputStream()
Returns an output stream which can send data to a remote node.

Inherited Method Summary

Public Methods

public abstract OutputStream getOutputStream ()

Returns an output stream which can send data to a remote node. The stream should be closed when no longer needed. This method will only return null if this result's status was not success.

The returned stream will throw IOException on write if any connection errors occur. This exception might be a ChannelIOException.

Data written to this stream is buffered. If you wish to send the current data without waiting for the buffer to fill up, flush the stream.

Multiple calls to this method will return the same instance.