DataMatrixExtCodetextBuilder
Inheritance: java.lang.Object, com.aspose.barcode.generation.ExtCodetextBuilder
public class DataMatrixExtCodetextBuilder extends ExtCodetextBuilder
Extended codetext generator for 2D DataMatrix barcodes for ExtendedCodetext Mode of DataMatrixEncodeMode
//Extended codetext mode //create codetext DataMatrixExtCodetextBuilder textBuilder = new DataMatrixExtCodetextBuilder(); codetextBuilder.addECICodetextWithEncodeMode(ECIEncodings.Win1251, DataMatrixEncodeMode.BYTES, "World"); codetextBuilder.addPlainCodetext("Will"); codetextBuilder.addECICodetext(ECIEncodings.UTF8, "\u72acRight\u72d7"); codetextBuilder.addCodetextWithEncodeMode(DataMatrixEncodeMode.C40, "ABCDE"); //generate codetext String codetext = textBuilder.getExtendedCodetext(); //generate BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, codetext); generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT); generator.save("test.bmp");
Constructors
Constructor | Description |
---|---|
DataMatrixExtCodetextBuilder() |
Methods
Method | Description |
---|---|
addCodetextWithEncodeMode(DataMatrixEncodeMode encodeMode, String codetext) | Adds codetext with defined encode mode to the extended codetext items |
addECICodetext(int ECIEncoding, String codetext) | Adds codetext with Extended Channel Identifier |
addECICodetextWithEncodeMode(int ECIEncoding, DataMatrixEncodeMode encodeMode, String codetext) | Adds codetext with Extended Channel Identifier with defined encode mode |
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) |
DataMatrixExtCodetextBuilder()
public DataMatrixExtCodetextBuilder()
addCodetextWithEncodeMode(DataMatrixEncodeMode encodeMode, String codetext)
public void addCodetextWithEncodeMode(DataMatrixEncodeMode encodeMode, String codetext)
Adds codetext with defined encode mode to the extended codetext items
Parameters:
Parameter | Type | Description |
---|---|---|
encodeMode | DataMatrixEncodeMode | Encode mode value |
codetext | java.lang.String | Codetext in unicode to add as extended codetext item |
addECICodetext(int ECIEncoding, String codetext)
public void addECICodetext(int ECIEncoding, String codetext)
Adds codetext with Extended Channel Identifier
Parameters:
Parameter | Type | Description |
---|---|---|
ECIEncoding | int | Extended Channel Identifier |
codetext | java.lang.String | Codetext in unicode to add as extended codetext item with Extended Channel Identifier |
addECICodetextWithEncodeMode(int ECIEncoding, DataMatrixEncodeMode encodeMode, String codetext)
public void addECICodetextWithEncodeMode(int ECIEncoding, DataMatrixEncodeMode encodeMode, String codetext)
Adds codetext with Extended Channel Identifier with defined encode mode
Parameters:
Parameter | Type | Description |
---|---|---|
ECIEncoding | int | Extended Channel Identifier |
encodeMode | DataMatrixEncodeMode | Encode mode value |
codetext | java.lang.String | Codetext in unicode to add as extended codetext item with Extended Channel Identifier with defined encode mode |
addPlainCodetext(String codetext)
public void addPlainCodetext(String codetext)
Adds plain codetext to the extended codetext items
Parameters:
Parameter | Type | Description |
---|---|---|
codetext | java.lang.String | Codetext 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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
Index | int | Index 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:
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 |