|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmrtd.lds.PassportFile
public abstract class PassportFile
Super class for passport files (EF_COM, EF_SOD, and data groups).
| Field Summary | |
|---|---|
static int |
EF_COM_TAG
ICAO specific datagroup tag. |
static int |
EF_DG1_TAG
ICAO specific datagroup tag. |
static int |
EF_DG10_TAG
ICAO specific datagroup tag. |
static int |
EF_DG11_TAG
ICAO specific datagroup tag. |
static int |
EF_DG12_TAG
ICAO specific datagroup tag. |
static int |
EF_DG13_TAG
ICAO specific datagroup tag. |
static int |
EF_DG14_TAG
ICAO specific datagroup tag. |
static int |
EF_DG15_TAG
ICAO specific datagroup tag. |
static int |
EF_DG16_TAG
ICAO specific datagroup tag. |
static int |
EF_DG2_TAG
ICAO specific datagroup tag. |
static int |
EF_DG3_TAG
ICAO specific datagroup tag. |
static int |
EF_DG4_TAG
ICAO specific datagroup tag. |
static int |
EF_DG5_TAG
ICAO specific datagroup tag. |
static int |
EF_DG6_TAG
ICAO specific datagroup tag. |
static int |
EF_DG7_TAG
ICAO specific datagroup tag. |
static int |
EF_DG8_TAG
ICAO specific datagroup tag. |
static int |
EF_DG9_TAG
ICAO specific datagroup tag. |
static int |
EF_SOD_TAG
ICAO specific datagroup tag. |
| Method Summary | |
|---|---|
static PassportFile |
createPassportFile(InputStream in)
Factory method for creating passport files for a given input stream. |
abstract byte[] |
getEncoded()
Gets the contents of this file as byte array, includes the ICAO tag and length. |
static int |
lookupDataGroupNumberByTag(int tag)
Finds a data group number for an ICAO tag. |
static short |
lookupFIDByDataGroupNumber(int number)
Finds an ICAO tag for a data group number. |
static short |
lookupFIDByTag(int tag)
Finds a file identifier for an ICAO tag. |
static int |
lookupTagByDataGroupNumber(int number)
Finds an ICAO tag for a data group number. |
static short |
lookupTagByFID(short fid)
Finds an ICAO tag for a file identifier. |
static String |
toString(int tag)
Returns a mnemonic name corresponding to the file represented by the given ICAO tag, such as "EF_COM", "EF_SOD", or "EF_DG1". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EF_COM_TAG
public static final int EF_DG1_TAG
public static final int EF_DG2_TAG
public static final int EF_DG3_TAG
public static final int EF_DG4_TAG
public static final int EF_DG5_TAG
public static final int EF_DG6_TAG
public static final int EF_DG7_TAG
public static final int EF_DG8_TAG
public static final int EF_DG9_TAG
public static final int EF_DG10_TAG
public static final int EF_DG11_TAG
public static final int EF_DG12_TAG
public static final int EF_DG13_TAG
public static final int EF_DG14_TAG
public static final int EF_DG15_TAG
public static final int EF_DG16_TAG
public static final int EF_SOD_TAG
| Method Detail |
|---|
public abstract byte[] getEncoded()
public static PassportFile createPassportFile(InputStream in)
throws IOException
in - a given input stream
IOException - on reading error from the input streampublic static short lookupFIDByTag(int tag)
tag - an ICAO tag (the first byte of the EF)
public static int lookupDataGroupNumberByTag(int tag)
tag - an ICAO tag (the first byte of the EF)
public static int lookupTagByDataGroupNumber(int number)
number - a data group number (1-16)
public static short lookupFIDByDataGroupNumber(int number)
number - a data group number (1-16)
public static short lookupTagByFID(short fid)
fid - a file identifier
public static String toString(int tag)
tag - an ICAO tag (the first byte of the EF)
|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||