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(java.io.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(java.lang.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(java.io.InputStream in)
Reads the contents of the data group from an input stream.
|
java.lang.String |
toString()
Gets a textual representation of this file.
|
protected void |
writeContent(java.io.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(java.io.InputStream in) throws java.io.IOException
in
- an input streamjava.io.IOException
- if something goes wrongprotected void readContent(java.io.InputStream in) throws java.io.IOException
DataGroup
readContent
in class DataGroup
in
- the input stream to read fromjava.io.IOException
- on error reading from input streampublic MRZInfo getMRZInfo()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected void writeContent(java.io.OutputStream out) throws java.io.IOException
DataGroup
writeContent
in class DataGroup
out
- the output stream to write tojava.io.IOException
- on error writing to output streampublic byte[] getEncoded()
getEncoded
in interface LDSElement