Package io.mosip.mimoto.util
Class CbeffToBiometricUtil
- java.lang.Object
-
- io.mosip.mimoto.util.CbeffToBiometricUtil
-
public class CbeffToBiometricUtil extends Object
The Class CbeffToBiometricUtil.- Author:
- M1048358 Alok, M1030448 Jyoti
-
-
Constructor Summary
Constructors Constructor Description CbeffToBiometricUtil()Instantiates biometric utilCbeffToBiometricUtil(CbeffUtil cbeffutil)Instantiates a new cbeff to biometric util.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamextractCbeffWithTypes(String cbeffFile, List<String> types)Extract cbeff with types.BIRextractTemplate(BIR sample, KeyValuePair[] flags)Gets the BIR templateList<BIR>getBIRDataFromXML(byte[] xmlBytes)Gets the BIR type list.List<BIR>getBIRTypeList(String cbeffFileString)Gets the BIR type list.byte[]getImageBytes(String cbeffFileString, String type, List<String> subType)Gets the photo.byte[]getPhotoByTypeAndSubType(List<BIR> bIRList, String type, List<String> subType)Gets the photo by type and sub type.InputStreammergeCbeff(String cbeffFile1, String cbeffFile2)Merge cbeff.
-
-
-
Constructor Detail
-
CbeffToBiometricUtil
public CbeffToBiometricUtil(CbeffUtil cbeffutil)
Instantiates a new cbeff to biometric util.- Parameters:
cbeffutil- the cbeffutil
-
CbeffToBiometricUtil
public CbeffToBiometricUtil()
Instantiates biometric util
-
-
Method Detail
-
getImageBytes
public byte[] getImageBytes(String cbeffFileString, String type, List<String> subType) throws Exception
Gets the photo.- Parameters:
cbeffFileString- the cbeff file stringtype- the typesubType- the sub type- Returns:
- the photo
- Throws:
Exception- the exception
-
getPhotoByTypeAndSubType
public byte[] getPhotoByTypeAndSubType(List<BIR> bIRList, String type, List<String> subType)
Gets the photo by type and sub type.- Parameters:
bIRTypeList- the b IR type listtype- the typesubType- the sub type- Returns:
- the photo by type and sub type
-
mergeCbeff
public InputStream mergeCbeff(String cbeffFile1, String cbeffFile2) throws Exception
Merge cbeff.- Parameters:
cbeffFile1- the cbeff file 1cbeffFile2- the cbeff file 2- Returns:
- the input stream
- Throws:
Exception- the exception
-
extractCbeffWithTypes
public InputStream extractCbeffWithTypes(String cbeffFile, List<String> types) throws Exception
Extract cbeff with types.- Parameters:
cbeffFile- the cbeff filetypes- the types- Returns:
- the input stream
- Throws:
Exception- the exception
-
getBIRTypeList
public List<BIR> getBIRTypeList(String cbeffFileString) throws Exception
Gets the BIR type list.- Parameters:
cbeffFileString- the cbeff file string- Returns:
- the BIR type list
- Throws:
Exception- the exception
-
getBIRDataFromXML
public List<BIR> getBIRDataFromXML(byte[] xmlBytes) throws Exception
Gets the BIR type list.- Parameters:
xmlBytes- byte array of XML data- Returns:
- the BIR type list
- Throws:
Exception- the exception
-
extractTemplate
public BIR extractTemplate(BIR sample, KeyValuePair[] flags) throws BiometricException
Gets the BIR template- Parameters:
sample- the sampleflags- the flags- Returns:
- the biometric record
- Throws:
BiometricException
-
-