org.jmrtd.lds
Class DG4File
java.lang.Object
org.jmrtd.lds.PassportFile
org.jmrtd.lds.DataGroup
org.jmrtd.lds.DG4File
public class DG4File
- extends DataGroup
File structure for the EF_DG4 file.
Based on ISO/IEC FCD 19794-6 (Biometric Data Interchange Formats.
Part 6: Iris Image Data) aka Annex E.
- Version:
- $Revision: 1278 $
- Author:
- Martijn Oostdijk (martijn.oostdijk@gmail.com)
| 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 |
DG4File(InputStream in)
Constructs a new file based on an input stream. |
templates
protected List<byte[]> templates
DG4File
public DG4File(InputStream in)
- Constructs a new file based on an input stream.
- Parameters:
in - an input stream
getEncoded
public byte[] getEncoded()
- Description copied from class:
PassportFile
- Gets the contents of this file as byte array,
includes the ICAO tag and length.
- Returns:
- a byte array containing the file
getIrisInfos
public List<IrisInfo> getIrisInfos()
getTag
public int getTag()
- Description copied from class:
DataGroup
- The data group tag.
- Overrides:
getTag in class DataGroup
- Returns:
- the tag of the data group
toString
public String toString()
- Gets a textual representation of this file.
- Returns:
- a textual representation of this file
readBiometricData
protected void readBiometricData(InputStream in,
int valueLength)
throws IOException
- Reads biometric data block.
Based on ISO/IEC FCD 19794-4 aka Annex F.
TODO: work in progress... -- MO
- Parameters:
in - the input stream positioned so that biometric data block tag and length are already readvalueLength - the length
- Throws:
IOException - if reading fails