Package uicc.connection
Interface Connection
public interface Connection
The Connection interface represents a data link connection to a remote entity.
Objects implementing
Connection and returned by the ConnectionServer.getConnection method
are Permanent Entry Point Objects.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the status of theConnection.voidupdateConnectionParameters(byte[] connectionParameters, short sOffset, short sLength) Update the connection parameters.
This operation can be performed only onConnectionobjects not allowing the multiplexing.
-
Method Details
-
updateConnectionParameters
void updateConnectionParameters(byte[] connectionParameters, short sOffset, short sLength) throws ArrayIndexOutOfBoundsException, ConnectionException, NullPointerException Update the connection parameters.
This operation can be performed only onConnectionobjects not allowing the multiplexing.- Parameters:
connectionParameters- parameters to build up an OPEN CHANNEL command according to ETSI TS 102 223sOffset- the starting offset of the parameters in theconnectionParametersbyte arraysLength- the length of the parameters- Throws:
ArrayIndexOutOfBoundsException- ifsOffsetandsLengthare causing access outside ofconnectionParametersarray boundsConnectionException- with the following reason code:INVALID_STATEif the connection is already opened.OPERATION_NOT_ALLOWEDif theConnectionallows multiplexing.
NullPointerException- ifconnectionParametersis equal tonull
-
isConnected
boolean isConnected()Returns the status of theConnection.- Returns:
trueif the Connection is connected,falseotherwise.
-