public class DG4File extends CBEFFDataGroup<IrisInfo>
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
Constructor and Description |
---|
DG4File(InputStream inputStream)
Constructs a new file based on an input stream.
|
DG4File(List<IrisInfo> irisInfos)
Creates a new file with the specified records.
|
DG4File(List<IrisInfo> irisInfos,
boolean shouldAddRandomDataIfEmpty)
Creates a new file with the specified records.
|
Modifier and Type | Method and Description |
---|---|
void |
addIrisInfo(IrisInfo irisInfo)
Adds an iris info to this file.
|
byte[] |
getEncoded()
Gets the contents of this file as byte array,
includes the ICAO tag and length.
|
List<IrisInfo> |
getIrisInfos()
Gets the embedded iris infos in this file.
|
protected void |
readContent(InputStream inputStream)
Reads the contents of the data group from an input stream.
|
void |
removeIrisInfo(int index)
Removes an iris info from this file.
|
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.
|
add, addAll, equals, getSubRecords, hashCode, remove, writeOptionalRandomData
getLength, getTag, readObject, writeObject
public DG4File(List<IrisInfo> irisInfos)
irisInfos
- recordspublic DG4File(List<IrisInfo> irisInfos, boolean shouldAddRandomDataIfEmpty)
irisInfos
- recordsshouldAddRandomDataIfEmpty
- indicates whether the encoder should add random data when no templates are presentpublic DG4File(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 String toString()
public List<IrisInfo> getIrisInfos()
public void addIrisInfo(IrisInfo irisInfo)
irisInfo
- an iris infopublic void removeIrisInfo(int index)
index
- the index of the iris info to removepublic byte[] getEncoded()
getEncoded
in interface LDSElement
Copyright © 2016. All rights reserved.