Enum ElementaryFile.Type
- java.lang.Object
-
- java.lang.Enum<ElementaryFile.Type>
-
- org.calypsonet.terminal.calypso.card.ElementaryFile.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ElementaryFile.Type>
- Enclosing interface:
- ElementaryFile
public static enum ElementaryFile.Type extends java.lang.Enum<ElementaryFile.Type>
The different types of EF.- Since:
- 1.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY
A Binary EF contains a single continuous sequence of data bytes from byte #0 (first byte) to byte #N−1 (last byte, for a binary file of N bytes).COUNTERS
A Counters EF is made of a single record containing an ordered sequence of K counters of three bytes each, from counter #1 (bytes at offsets 0, 1 and 2 of the record) to counter #K.CYCLIC
A Cyclic EF is made of 1 to several records organized in a cycle, from the most recent (record #1) to the oldest.LINEAR
A Linear EF is made of 1 to several records.SIMULATED_COUNTERS
A Simulated Counter EF is a linear file with a single record.
Simulated Counter EFs are present for compatibility with the Calypso Revision 2 access to simulated individual counters.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ElementaryFile.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ElementaryFile.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINEAR
public static final ElementaryFile.Type LINEAR
A Linear EF is made of 1 to several records.- Since:
- 1.0.0
-
BINARY
public static final ElementaryFile.Type BINARY
A Binary EF contains a single continuous sequence of data bytes from byte #0 (first byte) to byte #N−1 (last byte, for a binary file of N bytes).- Since:
- 1.0.0
-
CYCLIC
public static final ElementaryFile.Type CYCLIC
A Cyclic EF is made of 1 to several records organized in a cycle, from the most recent (record #1) to the oldest.- Since:
- 1.0.0
-
COUNTERS
public static final ElementaryFile.Type COUNTERS
A Counters EF is made of a single record containing an ordered sequence of K counters of three bytes each, from counter #1 (bytes at offsets 0, 1 and 2 of the record) to counter #K.- Since:
- 1.0.0
-
SIMULATED_COUNTERS
public static final ElementaryFile.Type SIMULATED_COUNTERS
A Simulated Counter EF is a linear file with a single record.
Simulated Counter EFs are present for compatibility with the Calypso Revision 2 access to simulated individual counters.- Since:
- 1.0.0
-
-
Method Detail
-
values
public static ElementaryFile.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ElementaryFile.Type c : ElementaryFile.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementaryFile.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-