public enum MagEncodingType extends Enum<MagEncodingType>
Enum Constant and Description |
---|
AAMVA
AAMVA encoding with track data validation.
Magnetic encoding settings auto configured for 'AAMVA' encoding. |
Binary
Binary encoding without track data validation.
The only magnetic encoding setting that will be applied is the density setting JobControlHelperUtilZmotif.setMagTrackDensity(java.util.Map) .All other magnetic encoding settings (parity, sentinels, bits per character, etc.) are ignored. The Binary data provided for encoding is interpreted as a literal bit-stream to be encoded, with the LSbit of each byte written out first. |
Custom
Custom encoding without track data validation.
|
ISO
ISO encoding with track data validation.
Magnetic encoding settings auto configured for 'ISO/IATA' encoding. |
JIS
JIS encoding without track data validation.
|
Modifier and Type | Method and Description |
---|---|
static MagEncodingType |
fromString(String text)
Returns the EncodingType enumeration for the specified text or null if no enumeration matches the specified text.
|
static MagEncodingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MagEncodingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MagEncodingType ISO
public static final MagEncodingType AAMVA
public static final MagEncodingType JIS
public static final MagEncodingType Custom
public static final MagEncodingType Binary
JobControlHelperUtilZmotif.setMagTrackDensity(java.util.Map)
.Binary
data provided for encoding is interpreted as a literal bit-stream to be encoded, with the LSbit of each byte written out first. When
the data is in DataFormat.Ascii
format, each character is treated as a 8-bit integer. In DataFormat.Hex
format, each 2-character (2 digit)
ASCII hex digit pair is converted to an 8-bit integer and treated as such. Each 8-bit value is encoded in the order it was provided in the data stream, in
LSbit to MSbit order.DataFormat.Hex
) would be encoded as:public static MagEncodingType[] values()
for (MagEncodingType c : MagEncodingType.values()) System.out.println(c);
public static MagEncodingType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static MagEncodingType fromString(String text)
text
- text representation of the specified enumeration member.
© 2016 ZIH Corp. All Rights Reserved.