QrExtCodetextBuilder

Inheritance: java.lang.Object, com.aspose.barcode.generation.ExtCodetextBuilder

public class QrExtCodetextBuilder extends ExtCodetextBuilder

Extended codetext generator for 2D QR barcodes for ExtendedCodetext Mode of QrEncodeMode Use TwoDDisplayText property of BarcodeGenerator to set visible text to removing managing characters. This sample shows how to use FNC1 first position in Extended Mode: QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder(); lTextBuilder.addFNC1FirstPosition(); lTextBuilder.addPlainCodetext(“000%89%%0”); lTextBuilder.addFNC1GroupSeparator(); lTextBuilder.addPlainCodetext(“12345”); //generate codetext String lCodetext = lTextBuilder.getExtendedCodetext(); //generate BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR); generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ExtendedCodetext); generator.getParameters().getBarcode().getQR().setQrErrorLevel(QRErrorLevel.LevelL); generator.setCodeText(lCodetext); generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText(“My Text”); generator.save(“test.bmp”); This sample shows how to use FNC1 second position in Extended Mode. //create codetext QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder(); TextBuilder.addFNC1SecondPosition(“12”); TextBuilder.addPlainCodetext(“TRUE3456”); //generate codetext String lCodetext = lTextBuilder.getExtendedCodetext(); //generate BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR); generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ExtendedCodetext); generator.getParameters().getBarcode().getQR().setQrErrorLevel(QRErrorLevel.LevelL); generator.setCodeText(lCodetext); generatorgenerator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText(“My Text”); generator.save(“test.bmp”); This sample shows how to use multi ECI mode in Extended Mode. //create codetext QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder(); TextBuilder.addECICodetext(ECIEncodings.Win1251, “Will”); TextBuilder.addECICodetext(ECIEncodings.UTF8, “Right”); TextBuilder.addECICodetext(ECIEncodings.UTF16BE, “Power”); TextBuilder.addPlainCodetext(@“t\e\\st”); //generate codetext String lCodetext = lTextBuilder.getExtendedCodetext(); //generate BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR); generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ExtendedCodetext); generator.getParameters().getBarcode().getQR().setQrErrorLevel(QRErrorLevel.LevelL); generator.setCodeText(lCodetext); generatorgenerator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText(“My Text”); generator.save(“test.bmp”);

Constructors

ConstructorDescription
QrExtCodetextBuilder()

Methods

MethodDescription
addECICodetext(int ECIEncoding, String codetext)Adds codetext with Extended Channel Identifier
addFNC1FirstPosition()Adds FNC1 in first position to the extended codetext items
addFNC1GroupSeparator()Adds Group Separator (GS - ‘\\u001D’) to the extended codetext items
addFNC1SecondPosition(String codetext)Adds FNC1 in second position to the extended codetext items
addPlainCodetext(String codetext)Adds plain codetext to the extended codetext items
clear()Clears extended codetext items
equals(Object arg0)
getClass()
getExtendedCodetext()Generates Extended codetext from the extended codetext list.
hashCode()
isNeedToShieldItemFromPrevECI(int Index)Checks necessity to shield previous item by “\000000”
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

QrExtCodetextBuilder()

public QrExtCodetextBuilder()

addECICodetext(int ECIEncoding, String codetext)

public void addECICodetext(int ECIEncoding, String codetext)

Adds codetext with Extended Channel Identifier

Parameters:

ParameterTypeDescription
ECIEncodingintExtended Channel Identifier
codetextjava.lang.StringCodetext in unicode to add as extended codetext item with Extended Channel Identifier

addFNC1FirstPosition()

public void addFNC1FirstPosition()

Adds FNC1 in first position to the extended codetext items

addFNC1GroupSeparator()

public void addFNC1GroupSeparator()

Adds Group Separator (GS - ‘\\u001D’) to the extended codetext items

addFNC1SecondPosition(String codetext)

public void addFNC1SecondPosition(String codetext)

Adds FNC1 in second position to the extended codetext items

Parameters:

ParameterTypeDescription
codetextjava.lang.StringValue of the FNC1 in the second position

addPlainCodetext(String codetext)

public void addPlainCodetext(String codetext)

Adds plain codetext to the extended codetext items

Parameters:

ParameterTypeDescription
codetextjava.lang.StringCodetext in unicode to add as extended codetext item

clear()

public void clear()

Clears extended codetext items

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getExtendedCodetext()

public String getExtendedCodetext()

Generates Extended codetext from the extended codetext list.

Returns: java.lang.String - Extended codetext as string

hashCode()

public native int hashCode()

Returns: int

isNeedToShieldItemFromPrevECI(int Index)

public boolean isNeedToShieldItemFromPrevECI(int Index)

Checks necessity to shield previous item by “\000000”

Parameters:

ParameterTypeDescription
IndexintIndex in m_List

Returns: boolean - Necessity to shield

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int