Class DataMatrixExtendedParameters

java.lang.Object
com.aspose.barcode.barcoderecognition.BaseExtendedParameters
com.aspose.barcode.barcoderecognition.DataMatrixExtendedParameters

public final class DataMatrixExtendedParameters extends BaseExtendedParameters

Stores special data of DataMatrix recognized barcode


 This sample shows how to get DataMatrix raw values
 
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, "12345");
 generator.save("c:\\test.png");

 BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.DATA_MATRIX);
 for(BarCodeResult result : reader.readBarCodes())
 {
     System.out.println("BarCode type: " + result.getCodeTypeName());
     System.out.println("BarCode codetext: " + result.getCodeText);
     System.out.println("DataMatrix barcode ID: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodeId());
     System.out.println("DataMatrix barcodes count: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodesCount());
     System.out.println("DataMatrix file ID: " + result.getExtended().getDataMatrix().getStructuredAppendFileId());
     System.out.println("DataMatrix is reader programming: " + result.getExtended().getDataMatrix().isReaderProgramming)_);
 }
 

  • Method Details

    • getStructuredAppendBarcodesCount

      public int getStructuredAppendBarcodesCount()

      Gets the DataMatrix structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.

      Value: The count of the DataMatrix structured append mode barcode.
    • getStructuredAppendBarcodeId

      public int getStructuredAppendBarcodeId()

      Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.

      Value: The ID of the DataMatrix structured append mode barcode.
    • getStructuredAppendFileId

      public int getStructuredAppendFileId()

      Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.

      Value: The ID of the DataMatrix structured append mode barcode.
    • isReaderProgramming

      public boolean isReaderProgramming()

      Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader. Default value is false.

    • equals

      public boolean equals(Object obj)

      Returns a value indicating whether this instance is equal to a specified DataMatrixExtendedParameters 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>.
    • op_Equality

      public static boolean op_Equality(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)

      Returns a value indicating whether the first DataMatrixExtendedParameters 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(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)

      Returns a value indicating if the first DataMatrixExtendedParameters 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 Object
      Returns:
      A 32-bit signed integer hash code.
    • toString

      public String toString()

      Returns a human-readable string representation of this DataMatrixExtendedParameters.

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