R
- the type of the elementspublic abstract class CBEFFDataGroup<R extends BiometricDataBlock> extends DataGroup
DG2File
, DG3File
, and DG4File
datagroups
are based on this type.Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
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
Modifier | Constructor and Description |
---|---|
protected |
CBEFFDataGroup(int dataGroupTag,
InputStream inputStream)
Constructs an instance.
|
protected |
CBEFFDataGroup(int dataGroupTag,
List<R> subRecords)
Creates a CBEFF data group.
|
Modifier and Type | Method and Description |
---|---|
void |
add(R record)
Adds a record to this data group.
|
void |
addAll(List<R> records)
Adds all records in a list to this data group.
|
boolean |
equals(Object other) |
byte[] |
getEncoded()
Returns the contents of this file as byte array,
includes the ICAO tag and length.
|
List<R> |
getSubRecords()
Returns the records in this data group.
|
int |
hashCode() |
void |
remove(int index)
Removes the record at the given index.
|
protected void |
writeOptionalRandomData(OutputStream outputStream)
Concrete implementations of EAC protected CBEFF DataGroups should call this
method at the end of their
AbstractTaggedLDSFile.writeContent(OutputStream) method to add
some random data if the record contains zero biometric templates. |
getLength, getTag, readContent, readObject, writeContent, writeObject
protected static final Logger LOGGER
protected CBEFFDataGroup(int dataGroupTag, List<R> subRecords)
dataGroupTag
- the data group tagsubRecords
- the sub-records contained in this data groupprotected CBEFFDataGroup(int dataGroupTag, InputStream inputStream) throws IOException
dataGroupTag
- the datagroup tag to useinputStream
- an input streamIOException
- on errorpublic void add(R record)
record
- the record to addpublic void addAll(List<R> records)
records
- the records to addpublic void remove(int index)
index
- the index of the record to removepublic List<R> getSubRecords()
protected void writeOptionalRandomData(OutputStream outputStream) throws IOException
AbstractTaggedLDSFile.writeContent(OutputStream)
method to add
some random data if the record contains zero biometric templates.
See supplement to ICAO Doc 9303 R7-p1_v2_sIII_0057.outputStream
- the outputstreamIOException
- on I/O errorspublic byte[] getEncoded()
getEncoded
in interface LDSElement
Copyright © 2018. All rights reserved.