com.aspose.barcode.barcoderecognition

Class 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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters 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.
      static boolean op_Equality(OneDExtendedParameters first, OneDExtendedParameters second)
      Returns a value indicating whether the first OneDExtendedParameters value is equal to the second.
      static boolean op_Inequality(OneDExtendedParameters first, OneDExtendedParameters second)
      Returns a value indicating if the first OneDExtendedParameters value is different from the second.
      java.lang.String toString()
      Returns a human-readable string representation of this OneDExtendedParameters.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 class java.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>.
      • op_Equality

        public static boolean op_Equality(OneDExtendedParameters first,
                                          OneDExtendedParameters second)

        Returns a value indicating whether the first OneDExtendedParameters value is equal to the second.

        Parameters:
        first - A first compared value
        second - A second compared value
        Returns:
        <b>true</b> if first has the same value as second; otherwise, <b>false</b>.
      • op_Inequality

        public static boolean op_Inequality(OneDExtendedParameters first,
                                            OneDExtendedParameters second)

        Returns a value indicating if the first OneDExtendedParameters value is different from the second.

        Parameters:
        first - A first compared value
        second - A second compared value
        Returns:
        <b>true</b> if first has the different value from second; otherwise, <b>false</b>.
      • hashCode

        public int hashCode()

        Returns the hash code for this instance.

        Overrides:
        hashCode in class java.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 class java.lang.Object
        Returns:
        A string that represents this OneDExtendedParameters.