FileDocCategorySizeDatePackage
StreamConnection.javaAPI DocphoneME MR2 API (J2ME)2151Wed May 02 17:59:56 BST 2007javax.microedition.io

StreamConnection

public interface StreamConnection implements InputConnection, OutputConnection
This interface defines the capabilities that a stream connection must have.

In a typical implementation of this interface (for instance in MIDP), 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.

version
12/17/01 (CLDC 1.1)
since
CLDC 1.0

Fields Summary
Constructors Summary
Methods Summary