public class DG1File extends DataGroup
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 and Description |
---|
DG1File(InputStream in)
Creates a new file based on an input stream.
|
DG1File(MRZInfo mrzInfo)
Creates a new file based on MRZ information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getEncoded()
Gets the contents of this file as byte array,
includes the ICAO tag and length.
|
MRZInfo |
getMRZInfo()
Gets the MRZ information stored in this file.
|
int |
hashCode() |
protected void |
readContent(InputStream in)
Reads the contents of the data group from an input stream.
|
String |
toString()
Gets a textual representation of this file.
|
protected void |
writeContent(OutputStream out)
Writes the contents of the data group to an output stream.
|
getLength, getTag, readObject, writeObject
public DG1File(MRZInfo mrzInfo)
mrzInfo
- the MRZ information to store in this filepublic DG1File(InputStream in) throws IOException
in
- an input streamIOException
- if something goes wrongprotected void readContent(InputStream in) throws IOException
AbstractTaggedLDSFile
readContent
in class AbstractTaggedLDSFile
in
- the input stream to read fromIOException
- on error reading from input streampublic MRZInfo getMRZInfo()
public String toString()
protected void writeContent(OutputStream out) throws IOException
AbstractTaggedLDSFile
writeContent
in class AbstractTaggedLDSFile
out
- the output stream to write toIOException
- on error writing to output streampublic byte[] getEncoded()
getEncoded
in interface LDSElement
Copyright © 2016. All rights reserved.