Channel.GetInputStreamResult

public static interface Channel.GetInputStreamResult implements Releasable Result

This interface was deprecated.
See getInputStream(ChannelClient.Channel).

Result of getInputStream(GoogleApiClient).

Public Method Summary

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

Inherited Method Summary

Public Methods

public abstract InputStream 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 return null if this result's {@linkplain #getStatus() status} was not {@linkplain Status#isSuccess() success}.

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

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.