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) |
Modifier and Type | Method and Description |
---|---|
void |
add(R record) |
void |
addAll(List<R> records) |
boolean |
equals(Object other) |
byte[] |
getEncoded()
Gets the contents of this file as byte array,
includes the ICAO tag and length.
|
List<R> |
getSubRecords() |
int |
hashCode() |
void |
remove(int 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, InputStream inputStream) throws IOException
dataGroupTag
- the datagroup tag to useinputStream
- an input streamIOException
- on errorpublic void add(R record)
public void remove(int index)
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 © 2016. All rights reserved.