| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.print.attribute.EnumSyntax
javax.print.attribute.standard.PrinterStateReason
public class PrinterStateReason
Class PrinterStateReason is a printing attribute class, an enumeration,
 that provides additional information about the printer's current state,
 i.e., information that augments the value of the printer's
 PrinterState attribute.
 Class PrinterStateReason defines standard printer 
 state reason values. A Print Service implementation only needs to report 
 those printer state reasons which are appropriate for the particular 
 implementation; it does not have to report every defined printer state 
 reason. 
 
 Instances of PrinterStateReason do not appear in a Print Service's
 attribute set directly.
 Rather, a PrinterStateReasons 
 attribute appears in the Print Service's attribute set. The PrinterStateReasons attribute contains zero, one, or 
 more than one PrinterStateReason objects which pertain to the
 Print Service's status, and each PrinterStateReason object is
 associated with a Severity level of REPORT (least severe),
 WARNING, or ERROR (most severe). The printer adds a PrinterStateReason
 object to the Print Service's 
 PrinterStateReasons attribute when the 
 corresponding condition becomes true of the printer, and the printer  
 removesthe PrinterStateReason object again when the corresponding   
 condition becomes false, regardless of whether the Print Service's overall
 PrinterState also changed. 
 
 IPP Compatibility: 
 The string values returned by each individual PrinterStateReason and 
 associated Severity object's toString()
 methods, concatenated together with a hyphen ("-") in
 between, gives the IPP keyword value for a PrinterStateReasons.
 The category name returned by getName() gives the IPP
 attribute name.
 
| Field Summary | |
|---|---|
| static PrinterStateReason | CONNECTING_TO_DEVICEThe printer has scheduled a job on the output device and is in the process of connecting to a shared network output device (and might not be able to actually start printing the job for an arbitrarily long time depending on the usage of the output device by other servers on the network). | 
| static PrinterStateReason | COVER_OPENOne or more covers on the device are open. | 
| static PrinterStateReason | DEVELOPER_EMPTYThe device is out of developer. | 
| static PrinterStateReason | DEVELOPER_LOWThe device is low on developer. | 
| static PrinterStateReason | DOOR_OPENOne or more doors on the device are open. | 
| static PrinterStateReason | FUSER_OVER_TEMPThe fuser temperature is above normal. | 
| static PrinterStateReason | FUSER_UNDER_TEMPThe fuser temperature is below normal. | 
| static PrinterStateReason | INPUT_TRAY_MISSINGOne or more input trays are not in the device. | 
| static PrinterStateReason | INTERLOCK_OPENOne or more interlock devices on the printer are unlocked. | 
| static PrinterStateReason | INTERPRETER_RESOURCE_UNAVAILABLEAn interpreter resource is unavailable (e.g., font, form). | 
| static PrinterStateReason | MARKER_SUPPLY_EMPTYThe device is out of at least one marker supply (e.g. | 
| static PrinterStateReason | MARKER_SUPPLY_LOWThe device is low on at least one marker supply (e.g. | 
| static PrinterStateReason | MARKER_WASTE_ALMOST_FULLThe device marker supply waste receptacle is almost full. | 
| static PrinterStateReason | MARKER_WASTE_FULLThe device marker supply waste receptacle is full. | 
| static PrinterStateReason | MEDIA_EMPTYAt least one input tray is empty. | 
| static PrinterStateReason | MEDIA_JAMThe device has a media jam. | 
| static PrinterStateReason | MEDIA_LOWAt least one input tray is low on media. | 
| static PrinterStateReason | MEDIA_NEEDEDA tray has run out of media. | 
| static PrinterStateReason | MOVING_TO_PAUSEDSomeone has paused the printer, but the device(s) are taking an appreciable time to stop. | 
| static PrinterStateReason | OPC_LIFE_OVERThe optical photo conductor is no longer functioning. | 
| static PrinterStateReason | OPC_NEAR_EOLThe optical photo conductor is near end of life. | 
| static PrinterStateReason | OTHERThe printer has detected an error other than ones listed below. | 
| static PrinterStateReason | OUTPUT_AREA_ALMOST_FULLOne or more output areas are almost full (e.g. | 
| static PrinterStateReason | OUTPUT_AREA_FULLOne or more output areas are full (e.g. | 
| static PrinterStateReason | OUTPUT_TRAY_MISSINGOne or more output trays are not in the device. | 
| static PrinterStateReason | PAUSEDSomeone has paused the printer and the printer's PrinterStateis STOPPED. | 
| static PrinterStateReason | SHUTDOWNSomeone has removed a printer from service, and the device may be powered down or physically removed. | 
| static PrinterStateReason | SPOOL_AREA_FULLThe limit of persistent storage allocated for spooling has been reached. | 
| static PrinterStateReason | STOPPED_PARTLYWhen a printer controls more than one output device, this reason indicates that one or more output devices are stopped. | 
| static PrinterStateReason | STOPPINGThe printer is in the process of stopping the device and will be stopped in a while. | 
| static PrinterStateReason | TIMED_OUTThe server was able to connect to the output device (or is always connected), but was unable to get a response from the output device. | 
| static PrinterStateReason | TONER_EMPTYThe device is out of toner. | 
| static PrinterStateReason | TONER_LOWThe device is low on toner. | 
| Constructor Summary | |
|---|---|
| protected  | PrinterStateReason(int value)Construct a new printer state reason enumeration value with the given integer value. | 
| Method Summary | |
|---|---|
|  Class<? extends Attribute> | getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value. | 
| protected  EnumSyntax[] | getEnumValueTable()Returns the enumeration value table for class PrinterStateReason. | 
|  String | getName()Get the name of the category of which this attribute value is an instance. | 
| protected  String[] | getStringTable()Returns the string table for class PrinterStateReason. | 
| Methods inherited from class javax.print.attribute.EnumSyntax | 
|---|
| clone, getOffset, getValue, hashCode, readResolve, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
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 becomes STOPPED,
 and the PAUSED value replaces 
 the MOVING_TO_PAUSED value in the PrinterStateReasons attribute. This value must be supported if the 
 printer can be paused and the implementation takes significant time to 
 pause a device in certain circumstances.
public static final PrinterStateReason PAUSED
PrinterState is STOPPED. In this state, a printer must not produce 
 printed output, but it must perform other operations requested by a 
 client. If a printer had been printing a job when the printer was
 paused, 
 the Printer must resume printing that job when the printer is no longer 
 paused and leave no evidence in the printed output of such a pause.
 This value must be supported if the printer can be paused.
public static final PrinterStateReason SHUTDOWN
public static final PrinterStateReason CONNECTING_TO_DEVICE
public static final PrinterStateReason TIMED_OUT
public static final PrinterStateReason STOPPING
PrinterState to STOPPED. The STOPPING reason is 
 never an error, even for a printer with a single output device. When an 
 output device ceases accepting jobs, the printer's PrinterStateReasons will have this reason while
 the output device completes printing.
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
| Constructor Detail | 
|---|
protected PrinterStateReason(int value)
value - Integer value.| Method Detail | 
|---|
protected String[] getStringTable()
getStringTable in class EnumSyntaxprotected EnumSyntax[] getEnumValueTable()
getEnumValueTable in class EnumSyntaxpublic final Class<? extends Attribute> getCategory()
For class PrinterStateReason and any vendor-defined subclasses, the category is class PrinterStateReason itself.
getCategory in interface Attributejava.lang.Class.public final String getName()
 For class PrinterStateReason and any vendor-defined subclasses, the 
 category name is "printer-state-reason".
getName in interface Attribute| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.