public enum SaneStatus extends java.lang.Enum<SaneStatus>
| Enum Constant and Description |
|---|
STATUS_ACCESS_DENIED |
STATUS_CANCELLED |
STATUS_COVER_OPEN |
STATUS_DEVICE_BUSY |
STATUS_EOF |
STATUS_GOOD |
STATUS_INVAL |
STATUS_IO_ERROR |
STATUS_JAMMED |
STATUS_NO_DOCS |
STATUS_NO_MEM |
STATUS_UNSUPPORTED |
| Modifier and Type | Method and Description |
|---|---|
static SaneStatus |
fromWireValue(int wireValue)
Returns the status represented by the given wire type, or
null if the status is not
known. |
static SaneStatus |
fromWireValue(SaneWord statusWord) |
int |
getWireValue()
Returns the integer used by the SANE network protocol to represent an instance of this enum on
the wire.
|
static SaneStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SaneStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaneStatus STATUS_GOOD
public static final SaneStatus STATUS_UNSUPPORTED
public static final SaneStatus STATUS_CANCELLED
public static final SaneStatus STATUS_DEVICE_BUSY
public static final SaneStatus STATUS_INVAL
public static final SaneStatus STATUS_EOF
public static final SaneStatus STATUS_JAMMED
public static final SaneStatus STATUS_NO_DOCS
public static final SaneStatus STATUS_COVER_OPEN
public static final SaneStatus STATUS_IO_ERROR
public static final SaneStatus STATUS_NO_MEM
public static final SaneStatus STATUS_ACCESS_DENIED
public static SaneStatus[] values()
for (SaneStatus c : SaneStatus.values()) System.out.println(c);
public static SaneStatus 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 nullpublic static SaneStatus fromWireValue(int wireValue)
null if the status is not
known.public static SaneStatus fromWireValue(SaneWord statusWord)
public int getWireValue()