Channel.GetInputStreamResult

  • The Channel.GetInputStreamResult interface is deprecated.

  • This interface represents the result of calling Channel.getInputStream(GoogleApiClient).

  • It includes a method getInputStream() which returns an InputStream to read data from a remote node.

  • The getInputStream() method returns null only if the result's status was not successful.

public static interface Channel.GetInputStreamResult implements Releasable Result

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 status was not 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.