Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| IM Profile
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.microedition.io
Interface Connection

All Known Subinterfaces:
  CommConnection, CommConnectionControlLines, ContentConnection, DatagramConnection, FileConnection, HttpConnection, HttpsConnection, InputConnection, OutputConnection, SecureConnection, ServerSocketConnection, SocketConnection, StreamConnection, StreamConnectionNotifier, UDPDatagramConnection

public interface Connection

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

Since:
  CLDC 1.0

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 that involve an I/O operation will cause 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| IM Profile
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit a comment or suggestion Version 2.0 of IM Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.