javax.microedition.io
Interface StreamConnection
- All Superinterfaces:
- Connection, InputConnection, OutputConnection
- All Known Subinterfaces:
- CommConnection, ContentConnection, HttpConnection, HttpsConnection, SecureConnection, SocketConnection
- public interface StreamConnection
- extends InputConnection, OutputConnection
This interface defines the capabilities that a stream connection
must have.
In a typical implementation of this interface (for instance
in MIDP 2.0), all StreamConnections
have one
underlying InputStream
and one OutputStream
.
Opening a DataInputStream
counts as opening an
InputStream
and opening a DataOutputStream
counts as opening an OutputStream
. Trying to open
another InputStream
or OutputStream
causes an IOException
. Trying to open the
InputStream
or OutputStream
after
they have been closed causes an IOException
.
The methods of StreamConnection
are not
synchronized. The only stream method that can be called safely
in another thread is close
.
- Since:
- CLDC 1.0
Submit a comment or suggestion Version 2.0 of MID Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.