public class PrinterStateReason extends EnumSyntax implements Attribute
PrinterState
属性值的信息。
PrinterStateReason类定义了标准的打印机状态原因值。
打印服务实现只需要报告适用于特定实现的打印机状态原因;
它不必报告每个定义的打印机状态原因。
PrinterStateReason的实例不会直接显示在打印服务的属性集中。 相反, PrinterStateReasons
属性出现在打印服务的属性集中。 PrinterStateReasons
属性包含与Print Service的状态相关的零个,一个或多个PrinterStateReason对象,每个PrinterStateReason对象与REPORT(最不严重),WARNING或ERROR(最严重)的Severity
级别相关联。 当打印机的相应条件变为true时,打印机将PrinterStateReason对象添加到打印服务的PrinterStateReasons
属性中,并且当相应的条件变为false时,打印机会再次删除PrinterStateReason对象,无论打印服务的整体PrinterState
是否也更改。
IPP兼容性:由每个个人PrinterStateReason
和相关联的Severity
对象的toString()
方法返回的字符串值,其间连接有连字符( "-"
),给出了PrinterStateReasons
的IPP关键字值。 由getName()
返回的类别名称提供IPP属性名称。
Modifier | Constructor and Description |
---|---|
protected |
PrinterStateReason(int value)
使用给定的整数值构造新的打印机状态原因枚举值。
|
Modifier and Type | Method and Description |
---|---|
类<? extends Attribute> |
getCategory()
获取要用作此打印属性值的“类别”的打印属性类。
|
protected EnumSyntax[] |
getEnumValueTable()
返回PrinterStateReason类的枚举值表。
|
String |
getName()
获取此属性值是一个实例的类别的名称。
|
protected String[] |
getStringTable()
返回PrinterStateReason类的字符串表。
|
clone, getOffset, getValue, hashCode, readResolve, toString
public static final PrinterStateReason OTHER
public static final PrinterStateReason MEDIA_NEEDED
public static final PrinterStateReason MEDIA_JAM
public static final PrinterStateReason MOVING_TO_PAUSED
PrinterState
变为STOPPED,PAUSED值替换PrinterStateReasons
属性中的MOVING_TO_PAUSED值。
如果打印机可以暂停,并且在某些情况下实施需要大量时间来暂停设备,则必须支持该值。
public static final PrinterStateReason PAUSED
PrinterState
是STOPPED。
在这种状态下,打印机不得产生打印输出,但必须执行客户要求的其他操作。
如果打印机暂停打印机时已打印作业,打印机不再暂停时,打印机必须恢复打印该作业,并且在打印输出中没有任何证据。
如果打印机可以暂停,则必须支持该值。
public static final PrinterStateReason SHUTDOWN
public static final PrinterStateReason CONNECTING_TO_DEVICE
public static final PrinterStateReason TIMED_OUT
public static final PrinterStateReason STOPPING
PrinterState
更改为STOPPED。
STOPPING原因永远不会出错,即使是具有单个输出设备的打印机。
当输出设备停止接受作业时,打印机的PrinterStateReasons
将在输出设备完成打印时具有此原因。
public static final PrinterStateReason STOPPED_PARTLY
public static final PrinterStateReason TONER_LOW
public static final PrinterStateReason TONER_EMPTY
public static final PrinterStateReason SPOOL_AREA_FULL
public static final PrinterStateReason COVER_OPEN
public static final PrinterStateReason INTERLOCK_OPEN
public static final PrinterStateReason DOOR_OPEN
public static final PrinterStateReason INPUT_TRAY_MISSING
public static final PrinterStateReason MEDIA_LOW
public static final PrinterStateReason MEDIA_EMPTY
public static final PrinterStateReason OUTPUT_TRAY_MISSING
public static final PrinterStateReason OUTPUT_AREA_ALMOST_FULL
public static final PrinterStateReason OUTPUT_AREA_FULL
public static final PrinterStateReason MARKER_SUPPLY_LOW
public static final PrinterStateReason MARKER_SUPPLY_EMPTY
public static final PrinterStateReason MARKER_WASTE_ALMOST_FULL
public static final PrinterStateReason MARKER_WASTE_FULL
public static final PrinterStateReason FUSER_OVER_TEMP
public static final PrinterStateReason FUSER_UNDER_TEMP
public static final PrinterStateReason OPC_NEAR_EOL
public static final PrinterStateReason OPC_LIFE_OVER
public static final PrinterStateReason DEVELOPER_LOW
public static final PrinterStateReason DEVELOPER_EMPTY
public static final PrinterStateReason INTERPRETER_RESOURCE_UNAVAILABLE
protected PrinterStateReason(int value)
value
- 整数值。
protected String[] getStringTable()
getStringTable
在
EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
在
EnumSyntax
public final 类<? extends Attribute> getCategory()
对于PrinterStateReason类和任何供应商定义的子类,该类别是PrinterStateReason类本身。
getCategory
在接口
Attribute
java.lang.Class
的一个实例。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.