CLDC
1.0

javax.microedition.io
Interface Connection

All Known Subinterfaces:
ContentConnection, DatagramConnection, InputConnection, OutputConnection, 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 a connection has been closed, access to any of its methods except this close() will cause an an IOException to be thrown. Closing an already closed connection has no effect. Streams derived from the connection may be open when method is called. Any open streams will cause the connection to be held open until they themselves are closed. In this latter case access to the open streams is permitted, but access to the connection is not.

Throws:
IOException - If an I/O error occurs

Submit a bug or feature

Copyright (c) 2000 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Portions may be derived from Berkeley BSD systems, licensed from U. of CA. Sun, Sun Microsystems, the Sun logo, Java, Java 2 MicroEdition, Connected Limited Device Configuration are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. andother countries. Federal Acquisitions:Commercial Software -Government Users Subject to Standard License Terms and Conditions.