Enum Class PosDataCode.ReadingMethod
- All Implemented Interfaces:
Serializable, Comparable<PosDataCode.ReadingMethod>, Constable, PosFlags.Flag
- Enclosing class:
PosDataCode
public static enum PosDataCode.ReadingMethod
extends Enum<PosDataCode.ReadingMethod>
implements PosFlags.Flag
Enumeration of card/data reading methods used at the POS terminal.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBar code reading.Contactless reading (e.g.Data on file (no card present).Fallback from preferred reading method.ICC (chip) reading.ICC was read but the read failed.Magnetic stripe reading.Magnetic stripe was read but the read failed.Physical entry (e.g.Track 1 data is present (jCard private field).Track 2 data is present (jCard private field).Reading method is unknown. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intBit offset within the PosDataCode byte array for reading method flags. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the byte offset withinPosFlags.getBytes()where this flag's mask starts.intintValue()Returns the multi-byte bit mask for this flag (low byte applied atPosFlags.Flag.getOffset()).toString()static PosDataCode.ReadingMethodReturns the enum constant of this class with the specified name.static PosDataCode.ReadingMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Reading method is unknown. -
CONTACTLESS
Contactless reading (e.g. RFID); information not taken from card. -
PHYSICAL
Physical entry (e.g. manual entry or OCR). -
BARCODE
Bar code reading. -
MAGNETIC_STRIPE
Magnetic stripe reading. -
ICC
ICC (chip) reading. -
DATA_ON_FILE
Data on file (no card present). -
ICC_FAILED
ICC was read but the read failed. -
MAGNETIC_STRIPE_FAILED
Magnetic stripe was read but the read failed. -
FALLBACK
Fallback from preferred reading method. -
TRACK1_PRESENT
Track 1 data is present (jCard private field). -
TRACK2_PRESENT
Track 2 data is present (jCard private field).
-
-
Field Details
-
OFFSET
Bit offset within the PosDataCode byte array for reading method flags.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
intValue
Returns the multi-byte bit mask for this flag (low byte applied atPosFlags.Flag.getOffset()).- Specified by:
intValuein interfacePosFlags.Flag- Returns:
- bit mask as a packed integer
-
toString
- Overrides:
toStringin classEnum<PosDataCode.ReadingMethod>
-
getOffset
Returns the byte offset withinPosFlags.getBytes()where this flag's mask starts.- Specified by:
getOffsetin interfacePosFlags.Flag- Returns:
- byte offset
-