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 {@linkplain #getStatus() status} was not {@linkplain Status#isSuccess() 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, {@linkplain OutputStream#flush() flush} the stream.

Multiple calls to this method will return the same instance.