public enum PrinterLanguage extends Enum<PrinterLanguage>
Enum Constant and Description |
---|
CPCL
Printer control language CPCL
|
LINE_PRINT
Printer control language line_print mode.
|
ZPL
Printer control language ZPL
|
Modifier and Type | Method and Description |
---|---|
static PrinterLanguage |
getLanguage(String name)
Converts the string name to the appropriate enum value.
|
String |
toString()
The name of the printer language - (e.g. "ZPL" or "CPCL").
|
static PrinterLanguage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrinterLanguage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrinterLanguage ZPL
public static final PrinterLanguage CPCL
public static final PrinterLanguage LINE_PRINT
public static PrinterLanguage[] values()
for (PrinterLanguage c : PrinterLanguage.values()) System.out.println(c);
public static PrinterLanguage valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static PrinterLanguage getLanguage(String name) throws ZebraPrinterLanguageUnknownException
name
parameter accepts the value
returned from the printer's 'device.langauges' SGD.name
- printer control language name (e.g. "zpl", "cpcl", or "line_print")ZebraPrinterLanguageUnknownException
- if the printer language cannot be determinedpublic String toString()
toString
in class Enum<PrinterLanguage>
Enum.toString()
© 2017 ZIH Corp. All Rights Reserved.