Class OneDExtendedParameters
- java.lang.Object
-
- com.aspose.barcode.barcoderecognition.BaseExtendedParameters
-
- com.aspose.barcode.barcoderecognition.OneDExtendedParameters
-
public final class OneDExtendedParameters extends BaseExtendedParameters
Stores special data of 1D recognized barcode like separate codetext and checksum
This sample shows how to get 1D barcode value and checksum
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128"); generator.save("test.png"); BarCodeReader reader = new BarCodeReader("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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specifiedOneDExtendedParameters
value.java.lang.String
getCheckSum()
Gets the checksum for 1D barcodes.java.lang.String
getValue()
Gets the codetext of 1D barcodes without checksum.int
hashCode()
Returns the hash code for this instance.java.lang.String
toString()
Returns a human-readable string representation of thisOneDExtendedParameters
.-
Methods inherited from class com.aspose.barcode.barcoderecognition.BaseExtendedParameters
isEmpty
-
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Gets the codetext of 1D barcodes without checksum.
Value: The codetext of 1D barcodes without checksum.
-
getCheckSum
public java.lang.String getCheckSum()
Gets the checksum for 1D barcodes.
Value: The checksum for 1D barcode.
-
equals
public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
OneDExtendedParameters
value.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- An System.Object value to compare to this instance.- Returns:
<b>true</b>
if obj has the same value as this instance; otherwise,<b>false</b>
.
-
hashCode
public int hashCode()
Returns the hash code for this instance.
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- A 32-bit signed integer hash code.
-
toString
public java.lang.String toString()
Returns a human-readable string representation of this
OneDExtendedParameters
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string that represents this
OneDExtendedParameters
.
-
-