J2ME CDC

javax.microedition.io
Interface Connection

All Known Subinterfaces:
ContentConnection, DatagramConnection, DirectoryConnection, InputConnection, OutputConnection, RandomAccessConnection, StreamConnection, StreamConnectionNotifier

public interface Connection

This is the most basic type of generic connection. Only the close method is defined. The open method defined here because opening is always done by the Connector.open() methods.


Method Summary
 void close()
          Close the connection.
 

Method Detail

close

public void close()
           throws IOException
Close the connection.

When the connection has been closed access to all methods except this one will cause an an IOException to be thrown. Closing an already closed connection has no effect. Streams derived from a connection may remain open after this method is called. This may cause the connection to remain open (but access to its methods are rejected) until any derived streams are closed themselves.

Throws:
IOException - If an I/O error occurs

J2ME CDC

Java is a trademark or registred trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo, Alto, California, 94303, U.S.A All Rights Reserved.