public final class PrinterState extends EnumSyntax implements PrintServiceAttribute
PrinterState
printing attribute reports
the current state of the printer device.
The PrinterStateReasons
attribute provides further detailed information about
the given printer state. Detailed information about the printer
state and printer state reasons attributes can be found in the
RFC 2911.
IPP Compatibility: PrinterState is an IPP 1.1 attribute.
Modifier and Type | Field and Description |
---|---|
static PrinterState |
IDLE
The printer device is in idle state.
|
static PrinterState |
PROCESSING
The printer device is in processing state.
|
static PrinterState |
STOPPED
The printer device has stopped.
|
static PrinterState |
UNKNOWN
The state is unknown currently.
|
Modifier | Constructor and Description |
---|---|
protected |
PrinterState(int value)
Constructs a
PrinterState object. |
Modifier and Type | Method and Description |
---|---|
Class<? extends Attribute> |
getCategory()
Returns category of this class.
|
protected EnumSyntax[] |
getEnumValueTable()
Returns a table with the enumeration values for this object.
|
String |
getName()
Returns the name of this attribute.
|
protected String[] |
getStringTable()
Returns a table with the enumeration values represented as strings
for this object.
|
clone, getOffset, getValue, hashCode, readResolve, toString
public static final PrinterState UNKNOWN
public static final PrinterState IDLE
public static final PrinterState PROCESSING
public static final PrinterState STOPPED
protected PrinterState(int value)
PrinterState
object.value
- the enum value.public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
PrinterState
itself.protected String[] getStringTable()
getStringTable
in class EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
in class EnumSyntax