Package org.jmrtd.lds.icao
Class DG5File
- java.lang.Object
-
- org.jmrtd.lds.AbstractTaggedLDSFile
-
- org.jmrtd.lds.DataGroup
-
- org.jmrtd.lds.DisplayedImageDataGroup
-
- org.jmrtd.lds.icao.DG5File
-
- All Implemented Interfaces:
Serializable
,LDSElement
,LDSFile
public class DG5File extends DisplayedImageDataGroup
File structure for the EF_DG5 file.- Version:
- $Revision: 1751 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jmrtd.lds.LDSFile
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
Constructors Constructor Description DG5File(InputStream inputStream)
Constructs a new file from binary representation.DG5File(List<DisplayedImageInfo> images)
Constructs a new file from a list of displayed images.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncoded()
Returns the contents of this file as byte array, includes the ICAO tag and length.-
Methods inherited from class org.jmrtd.lds.AbstractTaggedLDSFile
getLength, getTag, readObject, writeObject
-
Methods inherited from class org.jmrtd.lds.DisplayedImageDataGroup
equals, getImages, hashCode, readContent, toString, writeContent
-
-
-
-
Constructor Detail
-
DG5File
public DG5File(List<DisplayedImageInfo> images)
Constructs a new file from a list of displayed images.- Parameters:
images
- the displayed images, all of which should be of type Portrait
-
DG5File
public DG5File(InputStream inputStream) throws IOException
Constructs a new file from binary representation.- Parameters:
inputStream
- an input stream- Throws:
IOException
- on error reading input stream
-
-
Method Detail
-
getEncoded
public byte[] getEncoded()
Returns the contents of this file as byte array, includes the ICAO tag and length.- Specified by:
getEncoded
in interfaceLDSElement
- Returns:
- a byte array containing the file
-
-