public class FaceInfo extends java.lang.Object implements BiometricDataBlock
Constructor and Description |
---|
FaceInfo(java.io.InputStream inputStream)
Constructs a face info from binary encoding.
|
FaceInfo(java.util.List<FaceImageInfo> faceImageInfos)
Constructs a face info from a list of face image infos.
|
FaceInfo(StandardBiometricHeader sbh,
java.io.InputStream inputStream)
Constructs a face info from binary encoding.
|
FaceInfo(StandardBiometricHeader sbh,
java.util.List<FaceImageInfo> faceImageInfos)
Constructs a face info from a list of face image infos.
|
Modifier and Type | Method and Description |
---|---|
void |
addFaceImageInfo(FaceImageInfo faceImageInfo)
Adds a face image info to this face info.
|
boolean |
equals(java.lang.Object other) |
byte[] |
getEncoded()
Gets the encoded contents of this LDS info.
|
java.util.List<FaceImageInfo> |
getFaceImageInfos()
Gets the face image infos embedded in this face info.
|
StandardBiometricHeader |
getStandardBiometricHeader()
Gets the standard biometric header of this biometric data block
|
int |
hashCode() |
void |
readObject(java.io.InputStream inputStream)
Reads the facial record from an input stream.
|
void |
removeFaceImageInfo(int index)
Removes a face image info from this face info.
|
void |
writeObject(java.io.OutputStream outputStream)
Writes the facial record to an output stream.
|
public FaceInfo(java.util.List<FaceImageInfo> faceImageInfos)
faceImageInfos
- face image infospublic FaceInfo(StandardBiometricHeader sbh, java.util.List<FaceImageInfo> faceImageInfos)
sbh
- the standard biometric header to usefaceImageInfos
- face image infospublic FaceInfo(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- an input streamjava.io.IOException
- when decoding failspublic FaceInfo(StandardBiometricHeader sbh, java.io.InputStream inputStream) throws java.io.IOException
sbh
- the standard biometric header to useinputStream
- an input streamjava.io.IOException
- when decoding failspublic void readObject(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input streamjava.io.IOException
public void writeObject(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- an output streamjava.io.IOException
public StandardBiometricHeader getStandardBiometricHeader()
getStandardBiometricHeader
in interface BiometricDataBlock
public java.util.List<FaceImageInfo> getFaceImageInfos()
public void addFaceImageInfo(FaceImageInfo faceImageInfo)
faceImageInfo
- the face image info to addpublic void removeFaceImageInfo(int index)
index
- the index of the face image info to removepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public byte[] getEncoded()
LDSElement
getEncoded
in interface LDSElement