Summary: Methods | Inherited Methods | [Expand All]
public static interface

# Channel.GetInputStreamResult

implements Releasable Result

com.google.android.gms.wearable.Channel.GetInputStreamResult

## Class Overview

Result of `getInputStream(GoogleApiClient)`.

## Summary

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

[Expand] Inherited Methods
From interface com.google.android.gms.common.api.Releasable
abstract void | release()
From interface com.google.android.gms.common.api.Result
abstract Status | getStatus() Returns the status of this result.

## 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.