MaxiCodeStandardCodetext

MaxiCodeStandardCodetext

Class for encoding and decoding MaxiCode codetext for modes 4, 5 and 6.

Constructor

new MaxiCodeStandardCodetext()

Source:
Examples
//Mode 4
let maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_4);
maxiCodeCodetext.setMessage("Test message");
let complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext());
complexGenerator.generateBarCodeImage(BarcodeImageFormat.PNG);
//Mode 5
let maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_5);
maxiCodeCodetext.setMessage("Test message");
let complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext());
complexGenerator.generateBarCodeImage(BarcodeImageFormat.PNG);
//Mode 6
let maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_6);
maxiCodeCodetext.setMessage("Test message");
let complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext());
complexGenerator.generateBarCodeImage(BarcodeImageFormat.PNG);

Methods

equals(obj)

Returns a value indicating whether this instance is equal to a specified value.
Parameters:
Name Type Description
obj An value to compare to this instance.
Returns:
Type Description
if obj has the same value as this instance; otherwise, false.
Source:

getConstructedCodetext()

Constructs codetext
Returns:
Type Description
Constructed codetext
Source:

getHashCode()

Returns the hash code for this instance.
Returns:
Type Description
A 32-bit signed integer hash code
Source:

getMessage()

Gets message.
Source:

getMode()

Gets MaxiCode mode.
Returns:
Type Description
MaxiCode mode
Source:

initFromString(constructedCodetext)

Initializes instance from constructed codetext.
Parameters:
Name Type Description
constructedCodetext Constructed codetext.
Source:

setMessage()

Sets message.
Source:

setMode()

Sets MaxiCode mode. Standart codetext can be used only with modes 4, 5 and 6.
Source: