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_TAG |
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.
|
DG12File(String issuingAuthority,
String dateOfIssue,
List<String> namesOfOtherPersons,
String endorsementsAndObservations,
String taxOrExitRequirements,
byte[] imageOfFront,
byte[] imageOfRear,
String dateAndTimeOfPersonalization,
String personalizationSystemSerialNumber)
Constructs a new file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDateAndTimeOfPersonalization()
Returns the date and time of personalization.
|
String |
getDateOfIssue()
Returns the date of issuance.
|
byte[] |
getEncoded()
Returns the contents of this file as byte array,
includes the ICAO tag and length.
|
String |
getEndorsementsAndObservations()
Returns endorsements and observations.
|
byte[] |
getImageOfFront()
Returns image of front.
|
byte[] |
getImageOfRear()
Returns image of rear.
|
String |
getIssuingAuthority()
Returns the issuing authority.
|
List<String> |
getNamesOfOtherPersons()
Returns name of other person.
|
String |
getPersonalizationSystemSerialNumber()
Returns the personalization system serial number.
|
int |
getTag()
Returns the tag that identifies this LDS file.
|
List<Integer> |
getTagPresenceList()
Returns the tags of fields actually present in this file.
|
String |
getTaxOrExitRequirements()
Returns tax or exit requirements.
|
int |
hashCode() |
protected void |
readContent(InputStream inputStream)
Reads the contents of the data group from an input stream.
|
String |
toString()
Returns 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_TAG
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(String issuingAuthority, String dateOfIssue, List<String> namesOfOtherPersons, String endorsementsAndObservations, String taxOrExitRequirements, byte[] imageOfFront, byte[] imageOfRear, String 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 streamprotected void writeContent(OutputStream outputStream) throws IOException
AbstractTaggedLDSFile
writeContent
in class AbstractTaggedLDSFile
outputStream
- the output stream to write toIOException
- on error writing to output streampublic List<Integer> getTagPresenceList()
public String getIssuingAuthority()
public String getDateOfIssue()
public List<String> getNamesOfOtherPersons()
public String getEndorsementsAndObservations()
public String getTaxOrExitRequirements()
public byte[] getImageOfFront()
public byte[] getImageOfRear()
public String getDateAndTimeOfPersonalization()
public String getPersonalizationSystemSerialNumber()
public int getTag()
AbstractTaggedLDSFile
getTag
in class AbstractTaggedLDSFile
public String toString()
public byte[] getEncoded()
getEncoded
in interface LDSElement
Copyright © 2021. All rights reserved.