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

# Channel.GetOutputStreamResult

implements Releasable Result

com.google.android.gms.wearable.Channel.GetOutputStreamResult

## Class Overview

Result of `getOutputStream(GoogleApiClient)`.

## Summary

Public Methods
abstract OutputStream | getOutputStream() Returns an output stream which can send data to a 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 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 status was not 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, flush the stream.

Multiple calls to this method will return the same instance.