Package org.jmrtd.lds.iso19794
Class IrisBiometricSubtypeInfo
- java.lang.Object
-
- org.jmrtd.lds.AbstractLDSInfo
-
- org.jmrtd.lds.AbstractListInfo<IrisImageInfo>
-
- org.jmrtd.lds.iso19794.IrisBiometricSubtypeInfo
-
- All Implemented Interfaces:
Serializable
,LDSElement
public class IrisBiometricSubtypeInfo extends AbstractListInfo<IrisImageInfo>
Iris biometric subtype data block (containing iris image data blocks) based on Section 6.5.3 and Table 3 of ISO/IEC 19794-6 2005.- Version:
- $Revision: 1799 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IrisBiometricSubtypeInfo(int biometricSubtype, int imageFormat, List<IrisImageInfo> irisImageInfos)
Constructs a biometric subtype info.IrisBiometricSubtypeInfo(InputStream in, int imageFormat)
Constructs an iris biometric subtype from binary encoding.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIrisImageInfo(IrisImageInfo irisImageInfo)
Adds an iris image info to this iris biometric subtype info.boolean
equals(Object obj)
int
getBiometricSubtype()
The biometric subtype (feature identifier).int
getImageFormat()
Returns the image format used in the images encoded in this record.List<IrisImageInfo>
getIrisImageInfos()
Returns the iris image infos embedded in this iris biometric subtype info.long
getRecordLength()
Returns the record length.int
hashCode()
void
readObject(InputStream inputStream)
Reads an iris biometric subtype from input stream.void
removeIrisImageInfo(int index)
Removes an iris image info from this iris biometric subtype info.String
toString()
void
writeObject(OutputStream outputStream)
Writes an iris biometric subtype to output stream.-
Methods inherited from class org.jmrtd.lds.AbstractListInfo
add, addAll, getSubRecords, remove
-
Methods inherited from class org.jmrtd.lds.AbstractLDSInfo
getEncoded
-
-
-
-
Field Detail
-
EYE_UNDEF
public static final int EYE_UNDEF
Biometric subtype value.- See Also:
- Constant Field Values
-
EYE_RIGHT
public static final int EYE_RIGHT
Biometric subtype value.- See Also:
- Constant Field Values
-
EYE_LEFT
public static final int EYE_LEFT
Biometric subtype value.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IrisBiometricSubtypeInfo
public IrisBiometricSubtypeInfo(int biometricSubtype, int imageFormat, List<IrisImageInfo> irisImageInfos)
Constructs a biometric subtype info.
-
IrisBiometricSubtypeInfo
public IrisBiometricSubtypeInfo(InputStream in, int imageFormat) throws IOException
Constructs an iris biometric subtype from binary encoding.- Parameters:
in
- an input streamimageFormat
- the image format used- Throws:
IOException
- if reading fails
-
-
Method Detail
-
readObject
public void readObject(InputStream inputStream) throws IOException
Reads an iris biometric subtype from input stream.- Specified by:
readObject
in classAbstractListInfo<IrisImageInfo>
- Parameters:
inputStream
- an input stream- Throws:
IOException
- if reading fails
-
writeObject
public void writeObject(OutputStream outputStream) throws IOException
Writes an iris biometric subtype to output stream.- Specified by:
writeObject
in classAbstractListInfo<IrisImageInfo>
- Parameters:
outputStream
- an output stream- Throws:
IOException
- if writing fails
-
getRecordLength
public long getRecordLength()
Returns the record length.- Returns:
- the record length
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractListInfo<IrisImageInfo>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractListInfo<IrisImageInfo>
-
getBiometricSubtype
public int getBiometricSubtype()
- Returns:
- the biometric subtype.
-
getImageFormat
public int getImageFormat()
Returns the image format used in the images encoded in this record.- Returns:
- the image format
-
getIrisImageInfos
public List<IrisImageInfo> getIrisImageInfos()
Returns the iris image infos embedded in this iris biometric subtype info.- Returns:
- the embedded iris image infos
-
addIrisImageInfo
public void addIrisImageInfo(IrisImageInfo irisImageInfo)
Adds an iris image info to this iris biometric subtype info.- Parameters:
irisImageInfo
- the iris image info to add
-
removeIrisImageInfo
public void removeIrisImageInfo(int index)
Removes an iris image info from this iris biometric subtype info.- Parameters:
index
- the index of the iris image info to remove
-
-