|
JMRTD 0.4.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmrtd.lds.PassportFile
org.jmrtd.lds.DataGroup
org.jmrtd.lds.DG2File
public class DG2File
File structure for the EF_DG2 file. Datagroup 2 contains the facial features of the document holder. See A 13.3 in MRTD's LDS document. NOTE: multiple FaceInfos may be embedded in two ways: 1) as multiple images in the same record (see Fig. 3 in ISO/IEC 19794-5) 2) as multiple records (see A 13.3 in LDS technical report). For writing we choose option 2, because otherwise we have to precalc the total length of all FaceInfos, which sucks. -- CB
| Field Summary | |
|---|---|
protected List<byte[]> |
templates
|
| Fields inherited from class org.jmrtd.lds.PassportFile |
|---|
EF_COM_TAG, EF_DG1_TAG, EF_DG10_TAG, EF_DG11_TAG, EF_DG12_TAG, EF_DG13_TAG, EF_DG14_TAG, EF_DG15_TAG, EF_DG16_TAG, EF_DG2_TAG, EF_DG3_TAG, EF_DG4_TAG, EF_DG5_TAG, EF_DG6_TAG, EF_DG7_TAG, EF_DG8_TAG, EF_DG9_TAG, EF_SOD_TAG |
| Constructor Summary | |
|---|---|
DG2File()
Creates a new file with zero images. |
|
DG2File(InputStream in)
Creates a new file based on an input stream. |
|
| Method Summary | |
|---|---|
void |
addFaceInfo(FaceInfo fi)
Adds an image to this file. |
boolean |
equals(Object obj)
|
byte[] |
getEncoded()
Gets the contents of this file as byte array, includes the ICAO tag and length. |
List<FaceInfo> |
getFaceInfos()
Gets the images in this file. |
int |
getTag()
The data group tag. |
int |
hashCode()
|
protected void |
readBiometricData(InputStream in,
int valueLength)
Reads the biometric data block. |
void |
removeFaceInfo(int index)
Removes an image from this file. |
String |
toString()
Gets a textual representation of this file. |
| Methods inherited from class org.jmrtd.lds.DataGroup |
|---|
getLength |
| Methods inherited from class org.jmrtd.lds.PassportFile |
|---|
createPassportFile, lookupDataGroupNumberByTag, lookupFIDByDataGroupNumber, lookupFIDByTag, lookupTagByDataGroupNumber, lookupTagByFID, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<byte[]> templates
| Constructor Detail |
|---|
public DG2File()
public DG2File(InputStream in)
in - an input stream| Method Detail |
|---|
protected void readBiometricData(InputStream in,
int valueLength)
throws IOException
in - the input stream positioned so that biometric data block tag and length are already readvalueLength - the length
IOException - if reading failspublic int getTag()
getTag in class DataGrouppublic void addFaceInfo(FaceInfo fi)
fi - the image to addpublic void removeFaceInfo(int index)
index - the index of the image to removepublic byte[] getEncoded()
PassportFile
public String toString()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic List<FaceInfo> getFaceInfos()
|
JMRTD 0.4.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||