Class OneDExtendedParameters
java.lang.Object
com.aspose.barcode.barcoderecognition.BaseExtendedParameters
com.aspose.barcode.barcoderecognition.OneDExtendedParameters
Stores special data of 1D recognized barcode like separate codetext and checksum
This sample shows how to get 1D barcode value and checksumBarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128"); generator.save("c:\\test.png"); BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.EAN_13); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode Type: " + result.getCodeTypeName()); System.out.println("BarCode CodeText: " + result.getCodeText()); System.out.println("BarCode Value: " + result.getExtended().getOneD().getValue()); System.out.println("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum()); }
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a value indicating whether this instance is equal to a specifiedOneDExtendedParametersvalue.Gets the checksum for 1D barcodes.getValue()Gets the codetext of 1D barcodes without checksum.inthashCode()Returns the hash code for this instance.toString()Returns a human-readable string representation of thisOneDExtendedParameters.Methods inherited from class com.aspose.barcode.barcoderecognition.BaseExtendedParameters
isEmpty
-
Method Details
-
getValue
Gets the codetext of 1D barcodes without checksum.
Value: The codetext of 1D barcodes without checksum. -
getCheckSum
Gets the checksum for 1D barcodes.
Value: The checksum for 1D barcode. -
equals
Returns a value indicating whether this instance is equal to a specified
OneDExtendedParametersvalue. -
hashCode
public int hashCode()Returns the hash code for this instance.
-
toString
Returns a human-readable string representation of this
OneDExtendedParameters.
-