public class DG11File extends DataGroup
Modifier and Type | Field and Description |
---|---|
static int |
CONTENT_SPECIFIC_CONSTRUCTED_TAG |
static int |
COUNT_TAG |
static int |
CUSTODY_INFORMATION_TAG |
static int |
FULL_DATE_OF_BIRTH_TAG |
static int |
FULL_NAME_TAG |
static int |
OTHER_NAME_TAG |
static int |
OTHER_VALID_TD_NUMBERS_TAG |
static int |
PERMANENT_ADDRESS_TAG |
static int |
PERSONAL_NUMBER_TAG |
static int |
PERSONAL_SUMMARY_TAG |
static int |
PLACE_OF_BIRTH_TAG |
static int |
PROFESSION_TAG |
static int |
PROOF_OF_CITIZENSHIP_TAG |
static int |
TAG_LIST_TAG |
static int |
TELEPHONE_TAG |
static int |
TITLE_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 |
---|
DG11File(InputStream inputStream)
Constructs a file from binary representation.
|
DG11File(String nameOfHolder,
List<String> otherNames,
String personalNumber,
Date fullDateOfBirth,
List<String> placeOfBirth,
List<String> permanentAddress,
String telephone,
String profession,
String title,
String personalSummary,
byte[] proofOfCitizenship,
List<String> otherValidTDNumbers,
String custodyInformation)
Constructs a new file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCustodyInformation()
Gets custody information.
|
byte[] |
getEncoded()
Gets the contents of this file as byte array,
includes the ICAO tag and length.
|
Date |
getFullDateOfBirth()
Gets the full date of birth.
|
String |
getNameOfHolder()
Gets the full name of the holder (primary and secondary identifiers).
|
List<String> |
getOtherNames()
Gets the other names.
|
List<String> |
getOtherValidTDNumbers()
Gets the other valid TD numbers.
|
List<String> |
getPermanentAddress()
Gets the permanent address.
|
String |
getPersonalNumber()
Gets the personal number.
|
String |
getPersonalSummary()
Gets the personal summary.
|
List<String> |
getPlaceOfBirth()
Gets the place of birth.
|
String |
getProfession()
Gets the profession.
|
byte[] |
getProofOfCitizenship()
Gets the proof of citizenship.
|
int |
getTag()
The data group tag.
|
List<Integer> |
getTagPresenceList()
Gets list of tags of fields actually present.
|
String |
getTelephone()
Gets the telephone number.
|
String |
getTitle()
Gets the title.
|
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 out)
Writes the contents of the data group to an output stream.
|
getLength, readObject, writeObject
public static final int TAG_LIST_TAG
public static final int FULL_NAME_TAG
public static final int OTHER_NAME_TAG
public static final int PERSONAL_NUMBER_TAG
public static final int FULL_DATE_OF_BIRTH_TAG
public static final int PLACE_OF_BIRTH_TAG
public static final int PERMANENT_ADDRESS_TAG
public static final int TELEPHONE_TAG
public static final int PROFESSION_TAG
public static final int TITLE_TAG
public static final int PERSONAL_SUMMARY_TAG
public static final int PROOF_OF_CITIZENSHIP_TAG
public static final int OTHER_VALID_TD_NUMBERS_TAG
public static final int CUSTODY_INFORMATION_TAG
public static final int CONTENT_SPECIFIC_CONSTRUCTED_TAG
public static final int COUNT_TAG
public DG11File(String nameOfHolder, List<String> otherNames, String personalNumber, Date fullDateOfBirth, List<String> placeOfBirth, List<String> permanentAddress, String telephone, String profession, String title, String personalSummary, byte[] proofOfCitizenship, List<String> otherValidTDNumbers, String custodyInformation)
null
if data element is not present.
Use '<'
as separator.nameOfHolder
- data elementotherNames
- data elementpersonalNumber
- data elementfullDateOfBirth
- data elementplaceOfBirth
- data elementpermanentAddress
- data elementtelephone
- data elementprofession
- data elementtitle
- data elementpersonalSummary
- data elementproofOfCitizenship
- data elementotherValidTDNumbers
- data elementcustodyInformation
- data elementpublic DG11File(InputStream inputStream) throws IOException
inputStream
- an input streamIOException
- if reading failsprotected void readContent(InputStream inputStream) throws IOException
AbstractTaggedLDSFile
readContent
in class AbstractTaggedLDSFile
inputStream
- the input stream to read fromIOException
- on error reading from input streampublic int getTag()
AbstractTaggedLDSFile
getTag
in class AbstractTaggedLDSFile
public List<Integer> getTagPresenceList()
public String getNameOfHolder()
public List<String> getOtherNames()
public String getPersonalNumber()
public Date getFullDateOfBirth()
public List<String> getPlaceOfBirth()
public List<String> getPermanentAddress()
public String getTelephone()
public String getProfession()
public String getTitle()
public String getPersonalSummary()
public byte[] getProofOfCitizenship()
public List<String> getOtherValidTDNumbers()
public String getCustodyInformation()
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 © 2017. All rights reserved.