Name
StreamConnection
Synopsis
StreamConnection is an interface that combines the
methods of InputConnection and
OutputConnection, allowing a connection that is capable
of both input and output. Although there is no method that explicitly returns
a StreamConnection, most invocations of
Connector
open() will
return an object that implements this interface, as most connection types
support both input and output.
Even though a StreamConnection is capable of allowing
both input and output, it is an error to obtain an input stream from a
StreamConnection that was obtained using the
Connector
open() method with
Connector.WRITE, or to obtain an output stream
if Connector.READ mode was used.
public interface StreamConnection extends InputConnection, OutputConnection {
}
Implementations
ContentConnection
Returned By
StreamConnectionNotifier.acceptAndOpen()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access