Package uicc.connection
Interface Connection
-
public interface ConnectionThe Connection interface represents a data link connection to a remote entity. Objects implementingConnectionand returned by theConnectionServer.getConnectionmethod are Permanent Entry Point Objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisConnected()Returns 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 Detail
-
updateConnectionParameters
void updateConnectionParameters(byte[] connectionParameters, short sOffset, short sLength) throws java.lang.ArrayIndexOutOfBoundsException, ConnectionException, java.lang.NullPointerExceptionUpdate 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:
java.lang.ArrayIndexOutOfBoundsException- ifsOffsetandsLengthare causing access outside ofconnectionParametersarray boundsConnectionException- with the following reason code:INVALID_STATEif the connection is already opened.OPERATION_NOT_ALLOWEDif theConnectionallows multiplexing.
java.lang.NullPointerException- ifconnectionParametersis equal tonull
-
isConnected
boolean isConnected()
Returns the status of theConnection.- Returns:
trueif the Connection is connected,falseotherwise.
-
-