Name

Connection

Synopsis

Connection is a base interface that represents a generic connection to a device or remote object accessed over a network. This interface defines only a close() method. A class that implements this interface is obtained from the open() method of the Connector class. These connections are already in the open state, so there is no open() method in the Connection interface.

public interface Connection {  
// Public Instance Methods
   public abstract void close() throws java.io.IOException;  
}

Implementations

DatagramConnection, InputConnection, OutputConnection, StreamConnectionNotifier

Returned By

Connector.open()

Get J2ME in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.