public static enum Command.STATUS extends Enum<Command.STATUS>
| Enum Constant and Description |
|---|
PRINTER_ERROR
错误状态
|
PRINTER_OFFLINE
脱机状态
|
PRINTER_PAPER
纸张状态
|
PRINTER_STATUS
打印机状态
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getValue() |
static Command.STATUS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command.STATUS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command.STATUS PRINTER_STATUS
public static final Command.STATUS PRINTER_OFFLINE
public static final Command.STATUS PRINTER_ERROR
public static final Command.STATUS PRINTER_PAPER
public static Command.STATUS[] values()
for (Command.STATUS c : Command.STATUS.values()) System.out.println(c);
public static Command.STATUS 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 byte getValue()