MaxiCodeStandardCodetext
Inheritance: java.lang.Object, com.aspose.barcode.complexbarcode.MaxiCodeCodetext
public class MaxiCodeStandardCodetext extends MaxiCodeCodetext
Class for encoding and decoding MaxiCode codetext for modes 4, 5 and 6.
//Mode 4
MaxiCodeStandardCodetext maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_4);
maxiCodeCodetext.setMessage("Test message");
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext());
complexGenerator.generateBarCodeImage();
//Mode 5
MaxiCodeStandardCodetext maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_5);
maxiCodeCodetext.setMessage("Test message");
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext());
complexGenerator.generateBarCodeImage();
//Mode 6
MaxiCodeStandardCodetext maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_6);
maxiCodeCodetext.setMessage("Test message");
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext());
complexGenerator.generateBarCodeImage();
Constructors
Constructor | Description |
---|---|
MaxiCodeStandardCodetext() |
Methods
Method | Description |
---|---|
equals(Object obj) | Returns a value indicating whether this instance is equal to a specified value. |
getBarcodeType() | Gets barcode type. |
getClass() | |
getConstructedCodetext() | Constructs codetext |
getECIEncoding() | Gets ECI encoding. |
getHashCode() | Returns the hash code for this instance. |
getMaxiCodeEncodeMode() | Gets a MaxiCode encode mode. |
getMessage() | Gets message. |
getMode() | Gets MaxiCode mode. |
hashCode() | |
initFromString(String constructedCodetext) | Initializes instance from constructed codetext. |
notify() | |
notifyAll() | |
setECIEncoding(int value) | Sets ECI encoding. |
setMaxiCodeEncodeMode(MaxiCodeEncodeMode value) | Sets a MaxiCode encode mode. |
setMessage(String value) | Sets message. |
setMode(int mode) | Sets MaxiCode mode. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
MaxiCodeStandardCodetext()
public MaxiCodeStandardCodetext()
equals(Object obj)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified value.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | An value to compare to this instance. |
Returns: boolean - if obj has the same value as this instance; otherwise, false.
getBarcodeType()
public BaseEncodeType getBarcodeType()
Gets barcode type.
Returns: BaseEncodeType - Barcode type
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getConstructedCodetext()
public String getConstructedCodetext()
Constructs codetext
Returns: java.lang.String - Constructed codetext
getECIEncoding()
public int getECIEncoding()
Gets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.
Returns: int
getHashCode()
public int getHashCode()
Returns the hash code for this instance.
Returns: int - A 32-bit signed integer hash code
getMaxiCodeEncodeMode()
public MaxiCodeEncodeMode getMaxiCodeEncodeMode()
Gets a MaxiCode encode mode.
Returns: MaxiCodeEncodeMode
getMessage()
public String getMessage()
Gets message.
Returns: java.lang.String
getMode()
public int getMode()
Gets MaxiCode mode.
Returns: int - MaxiCode mode
hashCode()
public native int hashCode()
Returns: int
initFromString(String constructedCodetext)
public void initFromString(String constructedCodetext)
Initializes instance from constructed codetext.
Parameters:
Parameter | Type | Description |
---|---|---|
constructedCodetext | java.lang.String | Constructed codetext. |
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setECIEncoding(int value)
public void setECIEncoding(int value)
Sets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setMaxiCodeEncodeMode(MaxiCodeEncodeMode value)
public void setMaxiCodeEncodeMode(MaxiCodeEncodeMode value)
Sets a MaxiCode encode mode.
Parameters:
Parameter | Type | Description |
---|---|---|
value | MaxiCodeEncodeMode |
setMessage(String value)
public void setMessage(String value)
Sets message.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setMode(int mode)
public void setMode(int mode)
Sets MaxiCode mode. Standart codetext can be used only with modes 4, 5 and 6.
Parameters:
Parameter | Type | Description |
---|---|---|
mode | int |
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 |