public final class Pdf417ExtendedParameters extends BaseExtendedParameters
Stores a MacroPdf417 metadata information of recognized barcode
This sample shows how to get Macro Pdf417 metadataBarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MacroPdf417, "12345"); generator.getParameters().getBarcode().getPdf417().setPdf417MacroFileID(10); generator.getParameters().getBarcode().getPdf417().setPdf417MacroSegmentsCount(2); generator.getParameters().getBarcode().getPdf417().setPdf417MacroSegmentID(1); generator.save("c:\\test.png"); BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MACRO_PDF_417); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode Type: " + result.getCodeTypeName()); System.out.println("BarCode CodeText: " + result.getCodeText()); System.out.println("Macro Pdf417 FileID: " + result.getExtended().getPdf417().getMacroPdf417FileID()); System.out.println("Macro Pdf417 Segments: " + result.getExtended().getPdf417().getMacroPdf417SegmentsCount()); System.out.println("Macro Pdf417 SegmentID: " + result.getExtended().getPdf417().getMacroPdf417SegmentID()); }
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
Pdf417ExtendedParameters value. |
java.lang.String |
getMacroPdf417FileID()
Gets the file ID of the barcode, only available with MacroPdf417.
|
int |
getMacroPdf417SegmentID()
Gets the segment ID of the barcode,only available with MacroPdf417.
|
int |
getMacroPdf417SegmentsCount()
Gets macro pdf417 barcode segments count.
|
int |
hashCode()
Returns the hash code for this instance.
|
static boolean |
op_Equality(Pdf417ExtendedParameters first,
Pdf417ExtendedParameters second)
Returns a value indicating whether the first
Pdf417ExtendedParameters value is equal to the second. |
static boolean |
op_Inequality(Pdf417ExtendedParameters first,
Pdf417ExtendedParameters second)
Returns a value indicating if the first
Pdf417ExtendedParameters value is different from the second. |
java.lang.String |
toString()
Returns a human-readable string representation of this
Pdf417ExtendedParameters . |
isEmpty
public java.lang.String getMacroPdf417FileID()
Gets the file ID of the barcode, only available with MacroPdf417.
Value: The file ID for MacroPdf417public int getMacroPdf417SegmentID()
Gets the segment ID of the barcode,only available with MacroPdf417.
Value: The segment ID of the barcode.public int getMacroPdf417SegmentsCount()
Gets macro pdf417 barcode segments count. Default value is -1.
Value: Segments count.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified Pdf417ExtendedParameters
value.
equals
in class java.lang.Object
obj
- An System.Object value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public static boolean op_Equality(Pdf417ExtendedParameters first, Pdf417ExtendedParameters second)
Returns a value indicating whether the first Pdf417ExtendedParameters
value is equal to the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the same value as second; otherwise, <b>false</b>
.public static boolean op_Inequality(Pdf417ExtendedParameters first, Pdf417ExtendedParameters second)
Returns a value indicating if the first Pdf417ExtendedParameters
value is different from the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the different value from second; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object
public java.lang.String toString()
Returns a human-readable string representation of this Pdf417ExtendedParameters
.
toString
in class java.lang.Object
Pdf417ExtendedParameters
.