Thursday 14 March 2013

javax.microedition.io StreamConnection


javax.microedition.io
StreamConnection

Declaration
public interface StreamConnection extends InputConnection, OutputConnection
All Superinterfaces: Connection, InputConnection, OutputConnection
All Known Subinterfaces: ContentConnection
Description
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.


Methods inherited from interface Connection
close()
Methods inherited from interface InputConnection
openDataInputStream(), openInputStream()
Methods inherited from interface OutputConnection
openDataOutputStream(), openOutputStream()














No comments:

Post a Comment