JMRTD 0.4.6

org.jmrtd.lds
Class DG4File

java.lang.Object
  extended by org.jmrtd.lds.PassportFile
      extended by org.jmrtd.lds.DataGroup
          extended by 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)

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
DG4File(InputStream in)
          Constructs a new file based on an input stream.
 
Method Summary
 byte[] getEncoded()
          Gets the contents of this file as byte array, includes the ICAO tag and length.
 List<IrisInfo> getIrisInfos()
           
 int getTag()
          The data group tag.
protected  void readBiometricData(InputStream in, int valueLength)
          Reads biometric data block.
 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

templates

protected List<byte[]> templates
Constructor Detail

DG4File

public DG4File(InputStream in)
Constructs a new file based on an input stream.

Parameters:
in - an input stream
Method Detail

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 read
valueLength - the length
Throws:
IOException - if reading fails

JMRTD 0.4.6