Code128EncodeMode

Inheritance: java.lang.Object, java.lang.Enum

public enum Code128EncodeMode extends Enum<Code128EncodeMode>

Encoding mode for Code128 barcodes. Code 128 specification.


Following code demonstrates how to generate code 128 with different encodings
 

 //Generate code 128 with ISO 15417 encoding
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890");
 generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.AUTO);
 generator.save(filePath, BarCodeImageFormat.PNG);

 //Generate code 128 only with Codeset A encoding
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890");
 generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.CODE_A);
 generator.save(filePath, BarCodeImageFormat.PNG);

Fields

FieldDescription
AUTOEncode codetext in classic ISO 15417 mode.
CODE_AEncode codetext only in 128A codeset.
CODE_ABEncode codetext only in 128A and 128B codesets.
CODE_ACEncode codetext only in 128A and 128C codesets.
CODE_BEncode codetext only in 128B codeset.
CODE_BCEncode codetext only in 128B and 128C codesets.
CODE_CEncode codetext only in 128C codeset.

Methods

MethodDescription
valueOf(Class arg0, String arg1)
compareTo(E arg0)
equals(Object arg0)
getClass()
getDeclaringClass()
getValue()
hashCode()
name()
notify()
notifyAll()
ordinal()
toString()
valueOf(int value)
valueOf(String name)
values()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AUTO

public static final Code128EncodeMode AUTO

Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.

CODE_A

public static final Code128EncodeMode CODE_A

Encode codetext only in 128A codeset.

CODE_AB

public static final Code128EncodeMode CODE_AB

Encode codetext only in 128A and 128B codesets.

CODE_AC

public static final Code128EncodeMode CODE_AC

Encode codetext only in 128A and 128C codesets.

CODE_B

public static final Code128EncodeMode CODE_B

Encode codetext only in 128B codeset.

CODE_BC

public static final Code128EncodeMode CODE_BC

Encode codetext only in 128B and 128C codesets.

CODE_C

public static final Code128EncodeMode CODE_C

Encode codetext only in 128C codeset.

valueOf(Class arg0, String arg1)

public static T <T>valueOf(Class<T> arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1java.lang.String

Returns: T

compareTo(E arg0)

public final int compareTo(E arg0)

Parameters:

ParameterTypeDescription
arg0E

Returns: int

equals(Object arg0)

public final boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDeclaringClass()

public final Class<E> getDeclaringClass()

Returns: java.lang.Class

getValue()

public int getValue()

Returns: int

hashCode()

public final int hashCode()

Returns: int

name()

public final String name()

Returns: java.lang.String

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

ordinal()

public final int ordinal()

Returns: int

toString()

public String toString()

Returns: java.lang.String

valueOf(int value)

public static Code128EncodeMode valueOf(int value)

Parameters:

ParameterTypeDescription
valueint

Returns: Code128EncodeMode

valueOf(String name)

public static Code128EncodeMode valueOf(String name)

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: Code128EncodeMode

values()

public static Code128EncodeMode[] values()

Returns: com.aspose.barcode.generation.Code128EncodeMode[]

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