Channel.GetInputStreamResult

public static interfaceChannel.GetInputStreamResultimplementsReleasableResult

Public Method Summary

abstractInputStream
getInputStream()
Returns an input stream which can read data from the remote node.

Inherited Method Summary

Public Methods

public abstractInputStream getInputStream()

Returns an input stream which can read data from the remote node. The stream should be closed when no longer needed. This method will only returnnullif this result's {@linkplain #getStatus() status} was not {@linkplain Status#isSuccess() success}.

The returned stream will throwIOExceptionon read if any connection errors occur. This exception might be aChannelIOException.

Since data for this stream comes over the network, reads may block for a long time.

Multiple calls to this method will return the same instance.