Package com.aspose.barcode.generation
Class DotCodeExtCodetextBuilder
java.lang.Object
com.aspose.barcode.generation.ExtCodetextBuilder
com.aspose.barcode.generation.DotCodeExtCodetextBuilder
Extended codetext generator for 2D DotCode barcodes for ExtendedCodetext Mode of DotCodeEncodeMode
//Extended codetext mode //create codetext DotCodeExtCodetextBuilder textBuilder = new DotCodeExtCodetextBuilder(); textBuilder.addFNC1FormatIdentifier(); textBuilder.addECICodetext(ECIEncodings.Win1251, "Will"); textBuilder.addFNC1FormatIdentifier(); textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗"); textBuilder.addFNC1FormatIdentifier(); textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗"); textBuilder.addPlainCodetext("Plain text"); textBuilder.addFNC3SymbolSeparator(); textBuilder.addFNC3ReaderInitialization(); textBuilder.addPlainCodetext("Reader initialization info"); //generate codetext String codetext = textBuilder.getExtendedCodetext(); //generate BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DOT_CODE, codetext); { generator.getParameters().getBarcode().getDotCode().setDotCodeEncodeMode(DotCodeEncodeMode.EXTENDED_CODETEXT); generator.save("test.bmp"); }
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds FNC1 format identifier to the extended codetext itemsvoidAdds FNC3 reader initialization to the extended codetext itemsvoidAdds FNC3 symbol separator to the extended codetext itemsvoidaddStructuredAppendMode(int barcodeId, int barcodesCount) Adds structured append mode to the extended codetext itemsGenerates Extended codetext from the extended codetext list.Methods inherited from class com.aspose.barcode.generation.ExtCodetextBuilder
addECICodetext, addPlainCodetext, clear, isNeedToShieldItemFromPrevECI
-
Constructor Details
-
DotCodeExtCodetextBuilder
public DotCodeExtCodetextBuilder()
-
-
Method Details
-
addFNC1FormatIdentifier
public void addFNC1FormatIdentifier()Adds FNC1 format identifier to the extended codetext items
-
addFNC3SymbolSeparator
public void addFNC3SymbolSeparator()Adds FNC3 symbol separator to the extended codetext items
-
addFNC3ReaderInitialization
public void addFNC3ReaderInitialization()Adds FNC3 reader initialization to the extended codetext items
-
addStructuredAppendMode
public void addStructuredAppendMode(int barcodeId, int barcodesCount) Adds structured append mode to the extended codetext items
- Parameters:
barcodeId- ID of barcodebarcodesCount- Barcodes count
-
getExtendedCodetext
Generates Extended codetext from the extended codetext list.
- Specified by:
getExtendedCodetextin classExtCodetextBuilder- Returns:
- Extended codetext as string
-