MaxiCodeCodetext

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.barcode.complexbarcode.IComplexCodetext

public abstract class MaxiCodeCodetext implements IComplexCodetext

Base class for encoding and decoding the text embedded in the MaxiCode code. This sample shows how to decode raw MaxiCode codetext to MaxiCodeCodetext instance.

BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE);
 for (BarCodeResult result : reader.readBarCodes())
 {
      MaxiCodeCodetext resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText());
      System.out.println("BarCode Type: " + resultMaxiCodeCodetext.getBarcodeType());
      System.out.println("MaxiCode mode: " + resultMaxiCodeCodetext.getMode());
      System.out.println("BarCode CodeText: " + resultMaxiCodeCodetext.getConstructedCodetext());
 }

Constructors

ConstructorDescription
MaxiCodeCodetext()

Methods

MethodDescription
equals(Object arg0)
getBarcodeType()Gets barcode type.
getClass()
getConstructedCodetext()Constructs codetext
getECIEncoding()Gets ECI encoding.
getMaxiCodeEncodeMode()Gets a MaxiCode encode mode.
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.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MaxiCodeCodetext()

public MaxiCodeCodetext()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBarcodeType()

public BaseEncodeType getBarcodeType()

Gets barcode type.

Returns: BaseEncodeType - Barcode type

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getConstructedCodetext()

public abstract String getConstructedCodetext()

Constructs codetext

Returns: java.lang.String

getECIEncoding()

public int getECIEncoding()

Gets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.

Returns: int

getMaxiCodeEncodeMode()

public MaxiCodeEncodeMode getMaxiCodeEncodeMode()

Gets a MaxiCode encode mode.

Returns: MaxiCodeEncodeMode

getMode()

public abstract int getMode()

Gets MaxiCode mode.

Returns: int - MaxiCode mode

hashCode()

public native int hashCode()

Returns: int

initFromString(String constructedCodetext)

public abstract void initFromString(String constructedCodetext)

Initializes instance from constructed codetext.

Parameters:

ParameterTypeDescription
constructedCodetextjava.lang.StringConstructed 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:

ParameterTypeDescription
valueint

setMaxiCodeEncodeMode(MaxiCodeEncodeMode value)

public void setMaxiCodeEncodeMode(MaxiCodeEncodeMode value)

Sets a MaxiCode encode mode.

Parameters:

ParameterTypeDescription
valueMaxiCodeEncodeMode

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