Channel.GetOutputStreamResult
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From interface
com.google.android.gms.common.api.Releasable
From interface com.google.android.gms.common.api.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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-21 UTC."],[[["`Channel.GetOutputStreamResult` is deprecated and you should use `ChannelClient.getOutputStream(ChannelClient.Channel)` instead."],["This interface represents the result of an attempt to get an output stream for sending data to a remote node via a `Channel`."],["It provides a method, `getOutputStream()`, to retrieve the `OutputStream` if the operation was successful."],["The returned `OutputStream` can be used to send data, should be closed when finished, and might throw exceptions if connection errors occur."]]],["`Channel.GetOutputStreamResult` is a deprecated interface providing an output stream for sending data to a remote node. The `getOutputStream()` method returns the stream, which must be closed when finished. Data is buffered, and the `flush()` method sends data immediately. Connection errors will throw an `IOException`, potentially a `ChannelIOException`. `getStatus()` checks the success of the operation, `release()` releases the resources. Multiple calls to `getOutputStream()` will return the same instance.\n"]]