public static enum PosPrinterDev.ErrorCode extends java.lang.Enum<PosPrinterDev.ErrorCode>
Enum Constant and Description |
---|
ClosePortFailed |
ClosePortSuccess |
InTimeout |
OpenPortFailed |
OpenPortSuccess |
ReadDataFailed |
ReadDataSuccess |
UnknownError |
WriteDataFailed |
WriteDataSuccess |
Modifier and Type | Method and Description |
---|---|
static PosPrinterDev.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PosPrinterDev.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PosPrinterDev.ErrorCode OpenPortFailed
public static final PosPrinterDev.ErrorCode OpenPortSuccess
public static final PosPrinterDev.ErrorCode ClosePortFailed
public static final PosPrinterDev.ErrorCode ClosePortSuccess
public static final PosPrinterDev.ErrorCode WriteDataFailed
public static final PosPrinterDev.ErrorCode WriteDataSuccess
public static final PosPrinterDev.ErrorCode ReadDataSuccess
public static final PosPrinterDev.ErrorCode ReadDataFailed
public static final PosPrinterDev.ErrorCode UnknownError
public static final PosPrinterDev.ErrorCode InTimeout
public static PosPrinterDev.ErrorCode[] values()
for (PosPrinterDev.ErrorCode c : PosPrinterDev.ErrorCode.values()) System.out.println(c);
public static PosPrinterDev.ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null