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()
Get J2ME in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.