Package ej.ecom
Interface Connectable
-
- All Known Subinterfaces:
CommPort
public interface ConnectableCommon interface for a class that is able to open aConnectionfrom it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionopenConnection(String args)Create and open a newConnection.
-
-
-
Method Detail
-
openConnection
Connection openConnection(String args) throws IOException
Create and open a newConnection. The givenargsStringformat depends on the implementation of this interface. Sub-classes or sub-interfaces must specify the format of thisStringand the type of the returnedConnection.- Parameters:
args- the parameters of the connection- Returns:
- a new connection object.
- Throws:
ConnectionNotFoundException- if connection protocol is not foundIOException- if an I/O error occurs- See Also:
Connector.open(String)
-
-