public enum MrzFormat extends Enum<MrzFormat>
FRENCH_ID.| Enum Constant and Description |
|---|
FRENCH_ID
French 2 line/36 characters per line format, used with French ID cards.
|
MRTD_TD1
MRTD td1 format: A three line long, 30 characters per line format.
|
MRTD_TD2
MRTD td2 format: A two line long, 36 characters per line format.
|
MRV_VISA_A
MRV type-A format: A two lines long, 44 characters per line format Need to occur before
PASSPORT constant because of the same values
for row/column. |
MRV_VISA_B
MRV type-B format: A two lines long, 36 characters per line format.
|
PASSPORT
MRP Passport format: A two line long, 44 characters per line format.
|
SLOVAK_ID_234
Unknown 2 line/34 characters per line format, used with old Slovak ID cards.
|
| Modifier and Type | Method and Description |
|---|---|
static MrzFormat |
get(String mrz)
Detects given MRZ format.
|
int |
getColumns() |
Class<? extends MrzRecord> |
getRecordClass() |
int |
getRows() |
boolean |
isFormatOf(String[] mrzRows)
Checks if this format is able to parse given serialized MRZ record.
|
MrzRecord |
newRecord()
Creates new record instance with this type.
|
static MrzFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MrzFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MrzFormat MRTD_TD1
public static final MrzFormat FRENCH_ID
MRTD_TD2 enum constant because of the
same values for row/column. See below for the "if" test.public static final MrzFormat MRV_VISA_B
MRTD_TD2 enum constant because of the
same values for row/column. See below for the "if" test.public static final MrzFormat MRTD_TD2
public static final MrzFormat MRV_VISA_A
PASSPORT constant because of the same values
for row/column. See below for the "if" test.public static final MrzFormat PASSPORT
public static final MrzFormat SLOVAK_ID_234
public static MrzFormat[] values()
for (MrzFormat c : MrzFormat.values()) System.out.println(c);
public static MrzFormat 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 final int getRows()
public final int getColumns()
public boolean isFormatOf(String[] mrzRows)
mrzRows - MRZ record, separated into rows.public static final MrzFormat get(String mrz) throws MrzParseException
mrz - the MRZ string.MrzParseException - could not parse MRZpublic final MrzRecord newRecord()
Copyright © 2011–2022 Innovatrics. All rights reserved.