|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EditHandler
This class is the basic class for the construction of a list of Comprehension TLV elements. This class is able to handle Comprehension TLV with a value field no longer than 255 bytes.
ViewHandler,
ProactiveHandler,
EnvelopeResponseHandler,
ToolkitException| Method Summary | |
|---|---|
void |
appendArray(byte[] buffer,
short offset,
short length)
Appends a buffer into the EditHandler buffer. |
void |
appendTLV(byte tag,
byte value)
Appends a TLV element to the current TLV list (1-byte element). |
void |
appendTLV(byte tag,
byte[] value,
short valueOffset,
short valueLength)
Appends a TLV element to the current TLV list (byte array format). |
void |
appendTLV(byte tag,
byte[] value1,
short value1Offset,
short value1Length,
byte[] value2,
short value2Offset,
short value2Length)
Appends a TLV element to the current TLV list (2 byte arrays format). |
void |
appendTLV(byte tag,
byte value1,
byte value2)
Appends a TLV element to the current TLV list (2-byte element) This method is useful to add double byte elements as Device Identities, Duration or Response Length. |
void |
appendTLV(byte tag,
byte value1,
byte[] value2,
short value2Offset,
short value2Length)
Appends a TLV element to the current TLV list (1 byte and a byte array format). |
void |
appendTLV(byte tag,
byte value1,
short value2)
Appends a TLV element to the current TLV list (3-byte element(1-byte,1-short)) This method is useful to add three byte elements as Command details or Display parameters A successful append does not modify the TLV selected. |
void |
appendTLV(byte tag,
short value)
Appends a TLV element to the current TLV list (2-byte element). |
void |
appendTLV(byte tag,
short value1,
short value2)
Appends a TLV element to the current TLV list (4-byte element(2-short)) This method is useful to add three byte elements as Text Attribute, ESN, or C-APDU. |
void |
clear()
Clears the TLV list of an EditHandler and resets the current TLV selected. |
| Methods inherited from interface uicc.toolkit.ViewHandler |
|---|
compareValue, copy, copyValue, findAndCompareValue, findAndCompareValue, findAndCopyValue, findAndCopyValue, findTLV, getCapacity, getLength, getValueByte, getValueLength, getValueShort |
| Method Detail |
|---|
void clear()
throws ToolkitException
ToolkitException - with the following reason codes: HANDLER_NOT_AVAILABLE if the handler is busy
void appendArray(byte[] buffer,
short offset,
short length)
throws java.lang.NullPointerException,
java.lang.ArrayIndexOutOfBoundsException,
ToolkitException
buffer - the buffer containing data for copyoffset - the offset in the bufferlength - the value length of the buffer
java.lang.NullPointerException - if buffer is null
java.lang.ArrayIndexOutOfBoundsException - if offset or length
or both would cause access outside array bounds, or if length is negative.
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
void appendTLV(byte tag,
byte[] value,
short valueOffset,
short valueLength)
throws java.lang.NullPointerException,
java.lang.ArrayIndexOutOfBoundsException,
ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue - the buffer containing the TLV valuevalueOffset - the offset of the TLV value in the buffervalueLength - the value length of the TLV to append
java.lang.NullPointerException - if value is null
java.lang.ArrayIndexOutOfBoundsException - if valueOffset or valueLength
or both would cause access outside array bounds, or if value2Length is negative.
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
BAD_INPUT_PARAMETER if valueLength is greater than 255
void appendTLV(byte tag,
byte value)
throws ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue - the TLV value on 1 byte
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
void appendTLV(byte tag,
short value)
throws ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue - the 2 byte TLV value on 1 short
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
void appendTLV(byte tag,
byte value1,
byte value2)
throws ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue1 - the 1st byte (msb) of the TLV valuevalue2 - the 2nd byte (lsb) of the TLV value
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
void appendTLV(byte tag,
byte value1,
short value2)
throws ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue1 - the 1st byte (msb) of the TLV valuevalue2 - the 2nd and 3rd byte on 1 short of the TLV value
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
void appendTLV(byte tag,
short value1,
short value2)
throws ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue1 - the 1st short (1st and 2nd byte) of the TLV valuevalue2 - the 2nd short (3rd and 4th byte) the TLV value
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
void appendTLV(byte tag,
byte value1,
byte[] value2,
short value2Offset,
short value2Length)
throws java.lang.NullPointerException,
java.lang.ArrayIndexOutOfBoundsException,
ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue1 - the first byte in the value fieldvalue2 - the buffer containing the rest of the TLV fieldvalue2Offset - the offset of the rest of the TLV field in the buffervalue2Length - the value length of the rest of the TLV field to append
java.lang.NullPointerException - if value2 is null
java.lang.ArrayIndexOutOfBoundsException - if value2Offset or value2Length
or both would cause access outside array bounds, or if value2Length is negative.
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
BAD_INPUT_PARAMETER if value2Length is greater than 254
void appendTLV(byte tag,
byte[] value1,
short value1Offset,
short value1Length,
byte[] value2,
short value2Offset,
short value2Length)
throws java.lang.NullPointerException,
java.lang.ArrayIndexOutOfBoundsException,
ToolkitException
tag - the tag of the TLV to append, including the Comprehension Required flagvalue1 - the buffer containing the first part of the value fieldvalue1Offset - the offset in value1 of the data to appendvalue1Length - the length in value1 of the data to appendvalue2 - the buffer containing the second part of the value fieldvalue2Offset - the offset in value2 of the data to appendvalue2Length - the length in value2 of the data to append
java.lang.NullPointerException - if value1 or value2 is null
java.lang.ArrayIndexOutOfBoundsException - if value1Offset or value1Length
or both would cause access outside value1 array bounds, or if value1Length is negative,
if value2Offset or value2Length
or both would cause access outside value2 array bounds, or if value2Length is negative.
ToolkitException - with the following reason codes: HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
HANDLER_NOT_AVAILABLE if the handler is busy
BAD_INPUT_PARAMETER if value1Length or value2Lengthis greater than 255
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||