Class HIBCLICPrimaryDataCodetext
java.lang.Object
com.aspose.barcode.complexbarcode.HIBCLICComplexCodetext
com.aspose.barcode.complexbarcode.HIBCLICPrimaryDataCodetext
- All Implemented Interfaces:
IComplexCodetext
Class for encoding and decoding the text embedded in the HIBC LIC code which stores primary data.
This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryDataCodetext.HIBCLICPrimaryDataCodetext complexCodetext = new HIBCLICPrimaryDataCodetext(); complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC); complexCodetext.setData(new PrimaryData()); complexCodetext.getData().setProductOrCatalogNumber("12345"); complexCodetext.getData().setLabelerIdentificationCode("A999"); complexCodetext.getData().setUnitOfMeasureID(1); ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext); { BufferedImage image = generator.generateBarCodeImage(); BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC); { reader.readBarCodes(); HIBCLICPrimaryCodetext result = (HIBCLICPrimaryCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext); HIBCLICPrimaryCodetext result = (HIBCLICPrimaryCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext); System.out.println("Product or catalog number: " + result.getData().getProductOrCatalogNumber()); System.out.println("Labeler identification code: " + result.getData().getLabelerIdentificationCode()); System.out.println("Unit of measure ID: " + result.getData().getUnitOfMeasureID()); } }
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a value indicating whether this instance is equal to a specifiedHIBCLICPrimaryDataCodetextvalue.Constructs codetextgetData()Identifies primary data.inthashCode()Returns the hash code for this instance.voidinitFromString(String constructedCodetext) Initializes instance from constructed codetext.voidsetData(PrimaryData value) Identifies primary data.Methods inherited from class com.aspose.barcode.complexbarcode.HIBCLICComplexCodetext
getBarcodeType, setBarcodeType
-
Constructor Details
-
HIBCLICPrimaryDataCodetext
public HIBCLICPrimaryDataCodetext()
-
-
Method Details
-
getData
Identifies primary data.
-
setData
Identifies primary data.
-
getConstructedCodetext
Constructs codetext
- Specified by:
getConstructedCodetextin interfaceIComplexCodetext- Specified by:
getConstructedCodetextin classHIBCLICComplexCodetext- Returns:
- Constructed codetext
-
initFromString
Initializes instance from constructed codetext.
- Specified by:
initFromStringin interfaceIComplexCodetext- Specified by:
initFromStringin classHIBCLICComplexCodetext- Parameters:
constructedCodetext- Constructed codetext.
-
equals
Returns a value indicating whether this instance is equal to a specified
HIBCLICPrimaryDataCodetextvalue. -
hashCode
public int hashCode()Returns the hash code for this instance.
-