OneDExtendedParameters
Inheritance: java.lang.Object, com.aspose.barcode.barcoderecognition.BaseExtendedParameters
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()); }
Methods
Method | Description |
---|---|
equals(Object obj) | Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value. |
getCheckSum() | Gets the checksum for 1D barcodes. |
getClass() | |
getValue() | Gets the codetext of 1D barcodes without checksum. |
hashCode() | Returns the hash code for this instance. |
isEmpty() | Tests whether all parameters has only default values |
notify() | |
notifyAll() | |
toString() | Returns a human-readable string representation of this OneDExtendedParameters . |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
equals(Object obj)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | An System.Object value to compare to this instance. |
Returns: boolean - true if obj has the same value as this instance; otherwise, false .
getCheckSum()
public String getCheckSum()
Gets the checksum for 1D barcodes.
Value: The checksum for 1D barcode.
Returns: java.lang.String
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getValue()
public String getValue()
Gets the codetext of 1D barcodes without checksum.
Value: The codetext of 1D barcodes without checksum.
Returns: java.lang.String
hashCode()
public int hashCode()
Returns the hash code for this instance.
Returns: int - A 32-bit signed integer hash code.
isEmpty()
public boolean isEmpty()
Tests whether all parameters has only default values
Value: Returns true if all parameters has only default values; otherwise, false .
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns a human-readable string representation of this OneDExtendedParameters .
Returns: java.lang.String - A string that represents this OneDExtendedParameters .
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |