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("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 Details

    • getValue

      public String getValue()

      Gets the codetext of 1D barcodes without checksum.

      Value: The codetext of 1D barcodes without checksum.
    • getCheckSum

      public String getCheckSum()

      Gets the checksum for 1D barcodes.

      Value: The checksum for 1D barcode.
    • equals

      public boolean equals(Object obj)

      Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value.

      Overrides:
      equals in class 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 class Object
      Returns:
      A 32-bit signed integer hash code.
    • toString

      public String toString()

      Returns a human-readable string representation of this OneDExtendedParameters.

      Overrides:
      toString in class Object
      Returns:
      A string that represents this OneDExtendedParameters.