Code128EncodeMode
Inheritance: java.lang.Object, java.lang.Enum
public enum Code128EncodeMode extends Enum<Code128EncodeMode>
Encoding mode for Code128 barcodes. Code 128 specification.
Thos 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("d:\\code128Auto.png", 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("d:\\code128CodeA.png", BarCodeImageFormat.PNG);
Fields
Field | Description |
---|---|
AUTO | Encode codetext in classic ISO 15417 mode. |
CODE_A | Encode codetext only in 128A codeset. |
CODE_AB | Encode codetext only in 128A and 128B codesets. |
CODE_AC | Encode codetext only in 128A and 128C codesets. |
CODE_B | Encode codetext only in 128B codeset. |
CODE_BC | Encode codetext only in 128B and 128C codesets. |
CODE_C | Encode codetext only in 128C codeset. |
Methods
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Class | |
arg1 | java.lang.String |
Returns: T
compareTo(E arg0)
public final int compareTo(E arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | E |
Returns: int
equals(Object arg0)
public final boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
value | int |
Returns: Code128EncodeMode
valueOf(String name)
public static Code128EncodeMode valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.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:
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 |