1 package javax.microedition.io;
6 * This interface defines the capabilities that a stream connection must have.
8 * StreamConnections have one underlying InputStream and one OutputStream.
10 * Opening a DataInputStream counts as opening an InputStream and opening a DataOutputStream counts as opening an OutputStream.
12 * Trying to open another InputStream or OutputStream causes an IOException.
14 * Trying to open the InputStream or OutputStream after they have been closed causes an IOException
17 public interface StreamConnection {
20 * Close the stream connection
24 public void close() throws IOException;
27 * Open and return an InputStream - not yet implemented.
30 public InputStream openInputStream() throws IOException;
33 * Open and return a DataInputStream - not yet implemented.
35 public DataInputStream openDataInputStream() throws IOException;
38 * Open and return an OutputStream - not yet implemented.
40 public OutputStream openOutputStream() throws IOException;
43 * Open and return a DataOutputStream - not yet implemented.
45 public DataOutputStream openDataOutputStream() throws IOException;