public class DG12File extends DataGroup
Modifier and Type | Field and Description |
---|---|
static int |
CONTENT_SPECIFIC_CONSTRUCTED_TAG |
static int |
COUNT_TAG |
static int |
DATE_AND_TIME_OF_PERSONALIZATION |
static int |
DATE_OF_ISSUE_TAG |
static int |
ENDORSEMENTS_AND_OBSERVATIONS_TAG |
static int |
IMAGE_OF_FRONT_TAG |
static int |
IMAGE_OF_REAR_TAG |
static int |
ISSUING_AUTHORITY_TAG |
static int |
NAME_OF_OTHER_PERSON_TAG |
static int |
PERSONALIZATION_SYSTEM_SERIAL_NUMBER_TAG |
static int |
TAX_OR_EXIT_REQUIREMENTS_TAG |
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 |
---|
DG12File(InputStream inputStream)
Constructs a new file.
|
DG12File(String issuingAuthority,
Date dateOfIssue,
List<String> namesOfOtherPersons,
String endorsementsAndObservations,
String taxOrExitRequirements,
byte[] imageOfFront,
byte[] imageOfRear,
Date dateAndTimeOfPersonalization,
String personalizationSystemSerialNumber)
Constructs a new file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getDateAndTimeOfPersonalization()
Gets date and time of personalization.
|
Date |
getDateOfIssue()
Gets the date of issuance.
|
byte[] |
getEncoded()
Gets the contents of this file as byte array,
includes the ICAO tag and length.
|
String |
getEndorsementsAndObservations()
Gets endorsements and observations.
|
byte[] |
getImageOfFront()
Gets image of front.
|
byte[] |
getImageOfRear()
Gets image of rear.
|
String |
getIssuingAuthority()
Gets the issuing authority.
|
List<String> |
getNamesOfOtherPersons()
Gets name of other person.
|
String |
getPersonalizationSystemSerialNumber()
Gets the personalization system serial number.
|
int |
getTag()
The data group tag.
|
List<Integer> |
getTagPresenceList()
Gets the tags of fields actually present in this file.
|
String |
getTaxOrExitRequirements()
Gets tax or exit requirements.
|
int |
hashCode() |
protected void |
readContent(InputStream inputStream)
Reads the contents of the data group from an input stream.
|
String |
toString()
Gets a textual representation of this file.
|
protected void |
writeContent(OutputStream outputStream)
Writes the contents of the data group to an output stream.
|
getLength, readObject, writeObject
public static final int ISSUING_AUTHORITY_TAG
public static final int DATE_OF_ISSUE_TAG
public static final int NAME_OF_OTHER_PERSON_TAG
public static final int ENDORSEMENTS_AND_OBSERVATIONS_TAG
public static final int TAX_OR_EXIT_REQUIREMENTS_TAG
public static final int IMAGE_OF_FRONT_TAG
public static final int IMAGE_OF_REAR_TAG
public static final int DATE_AND_TIME_OF_PERSONALIZATION
public static final int PERSONALIZATION_SYSTEM_SERIAL_NUMBER_TAG
public static final int CONTENT_SPECIFIC_CONSTRUCTED_TAG
public static final int COUNT_TAG
public DG12File(String issuingAuthority, Date dateOfIssue, List<String> namesOfOtherPersons, String endorsementsAndObservations, String taxOrExitRequirements, byte[] imageOfFront, byte[] imageOfRear, Date dateAndTimeOfPersonalization, String personalizationSystemSerialNumber)
issuingAuthority
- the issuing authoritydateOfIssue
- the date of issuenamesOfOtherPersons
- names of other personsendorsementsAndObservations
- endorsements and observationstaxOrExitRequirements
- tax or exit requirementsimageOfFront
- image of frontimageOfRear
- image of reardateAndTimeOfPersonalization
- date and time of personalizationpersonalizationSystemSerialNumber
- personalization system serial numberpublic DG12File(InputStream inputStream) throws IOException
inputStream
- an input streamIOException
- on error reading from input streamprotected void readContent(InputStream inputStream) throws IOException
AbstractTaggedLDSFile
readContent
in class AbstractTaggedLDSFile
inputStream
- the input stream to read fromIOException
- on error reading from input streampublic List<Integer> getTagPresenceList()
public String getIssuingAuthority()
public Date getDateOfIssue()
public List<String> getNamesOfOtherPersons()
public String getEndorsementsAndObservations()
public String getTaxOrExitRequirements()
public byte[] getImageOfFront()
public byte[] getImageOfRear()
public Date getDateAndTimeOfPersonalization()
public String getPersonalizationSystemSerialNumber()
public int getTag()
AbstractTaggedLDSFile
getTag
in class AbstractTaggedLDSFile
public String toString()
protected void writeContent(OutputStream outputStream) throws IOException
AbstractTaggedLDSFile
writeContent
in class AbstractTaggedLDSFile
outputStream
- the output stream to write toIOException
- on error writing to output streampublic byte[] getEncoded()
getEncoded
in interface LDSElement
Copyright © 2016. All rights reserved.