SunSPOT API V3.0


javax.microedition.io
Interface Connection

All Known Subinterfaces:
ContentConnection, DatagramConnection, HttpConnection, InputConnection, OutputConnection, RadioConnection, RadiogramConnection, RadiostreamConnection, RemotePrintConnection, StreamConnection, StreamConnectionNotifier
All Known Implementing Classes:
ConnectionBase, Protocol, Protocol, Protocol, Protocol, Protocol, Protocol, Protocol, Protocol, Protocol, RadioConnectionBase, RadiogramConnImpl

public interface Connection

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

Version:
1.1 1/25/2000
Author:
Nik Shaylor

Method Summary
 void close()
          Close the connection.
 

Method Detail

close

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

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.