Search in sources :

Example 1 with QRCodeDataBlockReader

use of jp.sourceforge.qrcode.reader.QRCodeDataBlockReader in project qrcode by yanbe.

the class QRCodeDecoder method getDecodedByteArray.

byte[] getDecodedByteArray(int[] blocks, int version, int numErrorCorrectionCode) throws InvalidDataBlockException {
    byte[] byteArray;
    QRCodeDataBlockReader reader = new QRCodeDataBlockReader(blocks, version, numErrorCorrectionCode);
    try {
        byteArray = reader.getDataByte();
    } catch (InvalidDataBlockException e) {
        throw e;
    }
    return byteArray;
}
Also used : InvalidDataBlockException(jp.sourceforge.qrcode.exception.InvalidDataBlockException) QRCodeDataBlockReader(jp.sourceforge.qrcode.reader.QRCodeDataBlockReader)

Aggregations

InvalidDataBlockException (jp.sourceforge.qrcode.exception.InvalidDataBlockException)1 QRCodeDataBlockReader (jp.sourceforge.qrcode.reader.QRCodeDataBlockReader)1