⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jobstatereason.java

📁 java jdk 1.4的源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     * attempting to decompress the document's data that the compression is      * actually not among those supported by the printer. This value must be      * supported, since {@link Compression Compression} is a required doc      * description attribute.      */    public static final JobStateReason	UNSUPPORTED_COMPRESSION = new JobStateReason(18);        /**     * The job was aborted by the system because the printer encountered an      * error in the document data while decompressing it. If the printer posts      * this reason, the document data has already passed any tests that would      * have led to the UNSUPPORTED_COMPRESSION job state reason.      */    public static final JobStateReason	COMPRESSION_ERROR = new JobStateReason(19);        /**     * The job was aborted by the system because the document data's document      * format (doc flavor) is not among those supported by the printer. If the      * client specifies a doc flavor with a MIME type of      * <CODE>"application/octet-stream"</CODE>, the printer may abort the job if      * the printer cannot determine the document data's actual format through      * auto-sensing (even if the printer supports the document format if      * specified explicitly). This value must be supported, since a doc flavor      * is required to be specified for each doc.      */    public static final JobStateReason	UNSUPPORTED_DOCUMENT_FORMAT = new JobStateReason(20);        /**     * The job was aborted by the system because the printer encountered an      * error in the document data while processing it. If the printer posts this      * reason, the document data has already passed any tests that would have      * led to the UNSUPPORTED_DOCUMENT_FORMAT job state reason.      */    public static final JobStateReason	DOCUMENT_FORMAT_ERROR = new JobStateReason(21);        /**     * The requester has canceled the job or the printer has aborted the job,      * but the printer is still performing some actions on the job until a      * specified stop point occurs or job termination/cleanup is completed.      * <P>     * If the implementation requires some measurable time to cancel the job in      * the PROCESSING or PROCESSING_STOPPED job states, the printer must use      * this reason to indicate that the printer is still performing some actions      * on the job while the job remains in the PROCESSING or PROCESSING_STOPPED      * state. After all the job's job description attributes have stopped      * incrementing, the printer moves the job from the PROCESSING state to the      * CANCELED or ABORTED job states.      */    public static final JobStateReason	PROCESSING_TO_STOP_POINT = new JobStateReason(22);        /**     * The printer is off-line and accepting no jobs. All PENDING jobs are put      * into the PENDING_HELD state. This situation could be true if the      * service's or document transform's input is impaired or broken.      */    public static final JobStateReason	SERVICE_OFF_LINE = new JobStateReason(23);    /**     * The job completed successfully. This value should be supported.      */    public static final JobStateReason	JOB_COMPLETED_SUCCESSFULLY = new JobStateReason(24);        /**     * The job completed with warnings. This value should be supported if the      * implementation detects warnings.      */    public static final JobStateReason	JOB_COMPLETED_WITH_WARNINGS = new JobStateReason(25);        /**     * The job completed with errors (and possibly warnings too). This value      * should be supported if the implementation detects errors.      */    public static final JobStateReason	JOB_COMPLETED_WITH_ERRORS = new JobStateReason(26);        /**     * This job is retained and is currently able to be restarted. If      * JOB_RESTARTABLE is contained in the job's {@link JobStateReasons      * JobStateReasons} attribute, then the printer must accept a request to      * restart that job. This value should be supported if restarting jobs is      * supported. <I>[The capability for restarting jobs is not in the Java      * Print Service API at present.]</I>      */    public static final JobStateReason	JOB_RESTARTABLE = new JobStateReason(27);        /**     * The job has been forwarded to a device or print system that is unable to      * send back status. The printer sets the job's {@link JobState JobState}      * attribute to COMPLETED and adds the QUEUED_IN_DEVICE reason to the job's      * {@link JobStateReasons JobStateReasons} attribute to indicate that the      * printer has no additional information about the job and never will have      * any better information.      */    public static final JobStateReason 	QUEUED_IN_DEVICE = new JobStateReason(28);            /**     * Construct a new job state reason enumeration value with the given     * integer  value.      *     * @param  value  Integer value.     */    protected JobStateReason(int value) {	super (value);    }            private static final String[] myStringTable = {	"job-incoming",	"job-data-insufficient",	"document-access-error",	"submission-interrupted",	"job-outgoing",	"job-hold-until-specified",	"resources-are-not-ready",	"printer-stopped-partly",	"printer-stopped",	"job-interpreting",	"job-queued",	"job-transforming",	"job-queued-for-marker",	"job-printing",	"job-canceled-by-user",	"job-canceled-by-operator",	"job-canceled-at-device",	"aborted-by-system",	"unsupported-compression",	"compression-error",	"unsupported-document-format",	"document-format-error",	"processing-to-stop-point",	"service-off-line",	"job-completed-successfully",	"job-completed-with-warnings",	"job-completed-with-errors",	"job-restartable",	"queued-in-device"};    private static final JobStateReason[] myEnumValueTable = {	JOB_INCOMING,	JOB_DATA_INSUFFICIENT,	DOCUMENT_ACCESS_ERROR,	SUBMISSION_INTERRUPTED,	JOB_OUTGOING,	JOB_HOLD_UNTIL_SPECIFIED,	RESOURCES_ARE_NOT_READY,	PRINTER_STOPPED_PARTLY,	PRINTER_STOPPED,	JOB_INTERPRETING,	JOB_QUEUED,	JOB_TRANSFORMING,	JOB_QUEUED_FOR_MARKER,	JOB_PRINTING,	JOB_CANCELED_BY_USER,	JOB_CANCELED_BY_OPERATOR,	JOB_CANCELED_AT_DEVICE,	ABORTED_BY_SYSTEM,	UNSUPPORTED_COMPRESSION,	COMPRESSION_ERROR,	UNSUPPORTED_DOCUMENT_FORMAT,	DOCUMENT_FORMAT_ERROR,	PROCESSING_TO_STOP_POINT,	SERVICE_OFF_LINE,	JOB_COMPLETED_SUCCESSFULLY,	JOB_COMPLETED_WITH_WARNINGS,	JOB_COMPLETED_WITH_ERRORS,	JOB_RESTARTABLE,	QUEUED_IN_DEVICE};    /**     * Returns the string table for class JobStateReason.     */    protected String[] getStringTable() {	return (String[])myStringTable.clone();    }        /**     * Returns the enumeration value table for class JobStateReason.     */    protected EnumSyntax[] getEnumValueTable() {	return (EnumSyntax[])myEnumValueTable.clone();    }                 /**     * Get the printing attribute class which is to be used as the "category"      * for this printing attribute value.     * <P>     * For class JobStateReason and any vendor-defined subclasses, the     * category  is class JobStateReason itself.      *     * @return  Printing attribute class (category), an instance of class     *          {@link java.lang.Class java.lang.Class}.     */    public final Class getCategory() {	return JobStateReason.class;    }        /**     * Get the name of the category of which this attribute value is an      * instance.      * <P>     * For class JobStateReason and any vendor-defined subclasses, the       * category name is <CODE>"job-state-reason"</CODE>.      *     * @return  Attribute category name.     */    public final String getName() {	return "job-state-reason";    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -