Class CbeffToBiometricUtil


  • public class CbeffToBiometricUtil
    extends Object
    The Class CbeffToBiometricUtil.
    Author:
    M1048358 Alok, M1030448 Jyoti
    • 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 string
        type - the type
        subType - 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 list
        type - the type
        subType - 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 1
        cbeffFile2 - 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 file
        types - 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