public class PrinterStateReason extends EnumSyntax implements Attribute
PrinterState
属性をよりわかりやすくする情報を値の列挙として提供する印刷属性クラスです。 プリンタの状態理由を表す標準の値を定義します。 印刷サービスを実装する場合、通知する必要があるプリンタ状態理由は、特定の実装に該当するもののみです。定義されているすべてのプリンタ状態理由を通知する必要はありません。
PrinterStateReasonのインスタンスが印刷サービスの属性セットに直接含まれることはありません。 PrinterStateReasons
属性が使用されます。 PrinterStateReasons
属性には、印刷サービスのステータスに関連するPrinterStateReasonオブジェクトがまったく含まれない場合もあり、1つ以上含まれる場合もあります。PrinterStateReasonオブジェクトは、REPORT (重要度低)、WARNING、またはERROR (重要度高)のSeverity
レベルにそれぞれ関連付けられます。 プリンタは対応する条件がtrueになったときにPrinterStateReasonオブジェクトを印刷サービスのPrinterStateReasons
属性に追加し、falseになったときにPrinterStateReasonオブジェクトを削除します。印刷サービス全体のPrinterState
の変更とは無関係にこの処理が行われます。
IPP互換性: 各PrinterStateReason
および関連付けられたSeverity
オブジェクトのtoString()
メソッドで返される文字列値をハイフン("-"
)でつないだものが、PrinterStateReasons
のIPPキーワード値を示します。 getName()
によって返されるカテゴリ名はIPP属性の名前を示します。
修飾子と型 | フィールド | 説明 |
---|---|---|
static PrinterStateReason |
CONNECTING_TO_DEVICE |
出力デバイスに対してジョブがスケジュールされ、共有ネットワーク出力デバイスへの接続処理中です(ネットワーク上の別のサーバーが出力デバイスを長時間使用している場合、実際のジョブの印刷を長時間開始できない状態になっています)。
|
static PrinterStateReason |
COVER_OPEN |
デバイスのカバーが開いています。
|
static PrinterStateReason |
DEVELOPER_EMPTY |
現像剤がなくなりました。
|
static PrinterStateReason |
DEVELOPER_LOW |
現像剤が残り少なくなっています。
|
static PrinterStateReason |
DOOR_OPEN |
デバイスのドアが開いています。
|
static PrinterStateReason |
FUSER_OVER_TEMP |
定着器の温度が標準を上回っています。
|
static PrinterStateReason |
FUSER_UNDER_TEMP |
定着器の温度が標準を下回っています。
|
static PrinterStateReason |
INPUT_TRAY_MISSING |
給紙トレーがデバイスに挿入されていません。
|
static PrinterStateReason |
INTERLOCK_OPEN |
プリンタのインターロック・デバイスがロックされていません。
|
static PrinterStateReason |
INTERPRETER_RESOURCE_UNAVAILABLE |
フォントやフォームなどのインタプリタ・リソースが利用できません。
|
static PrinterStateReason |
MARKER_SUPPLY_EMPTY |
なくなっているマーカー・サプライが少なくとも1つあります。
|
static PrinterStateReason |
MARKER_SUPPLY_LOW |
残り少なくなっているマーカー・サプライが少なくとも1つあります。
|
static PrinterStateReason |
MARKER_WASTE_ALMOST_FULL |
マーカー・サプライの空き容器収納部がもうすぐいっぱいになります。
|
static PrinterStateReason |
MARKER_WASTE_FULL |
マーカー・サプライの空き容器収納部がいっぱいです。
|
static PrinterStateReason |
MEDIA_EMPTY |
空になっている入力トレーがあります。
|
static PrinterStateReason |
MEDIA_JAM |
デバイスで紙詰まりが発生しています。
|
static PrinterStateReason |
MEDIA_LOW |
用紙が残り少なくなっている入力トレーがあります。
|
static PrinterStateReason |
MEDIA_NEEDED |
トレーに用紙がありません。
|
static PrinterStateReason |
MOVING_TO_PAUSED |
誰かがプリンタを一時停止しましたが、デバイスが停止するまでには一定の時間が必要です。
|
static PrinterStateReason |
OPC_LIFE_OVER |
光導電体が使用できなくなりました。
|
static PrinterStateReason |
OPC_NEAR_EOL |
光導電体の交換時期が近づいています。
|
static PrinterStateReason |
OTHER |
下記のエラー以外のエラーが検出されました。
|
static PrinterStateReason |
OUTPUT_AREA_ALMOST_FULL |
まもなくいっぱいになる排紙エリアが1つ以上あります。
|
static PrinterStateReason |
OUTPUT_AREA_FULL |
いっぱいになっている排紙エリアが1つ以上あります。
|
static PrinterStateReason |
OUTPUT_TRAY_MISSING |
排紙トレーがデバイスに挿入されていません。
|
static PrinterStateReason |
PAUSED |
他のユーザーがプリンタを一時停止し、プリンタの
PrinterState がSTOPPEDになっています。 |
static PrinterStateReason |
SHUTDOWN |
プリンタが印刷サービスから削除され、デバイスの電源が切られているか、または物理的に撤去されています。
|
static PrinterStateReason |
SPOOL_AREA_FULL |
スプール処理用に割り当てられた固定ストレージがすべて使用されています。
|
static PrinterStateReason |
STOPPED_PARTLY |
複数の出力デバイスをプリンタが制御している場合、この理由は1つ以上の出力デバイスが停止していることを示します。
|
static PrinterStateReason |
STOPPING |
デバイスの停止処理が行われており、まもなく停止します。
|
static PrinterStateReason |
TIMED_OUT |
サーバーが出力デバイスに接続することができました(またはすでに接続されています)が、出力デバイスからの応答がありません。
|
static PrinterStateReason |
TONER_EMPTY |
トナーがなくなりました。
|
static PrinterStateReason |
TONER_LOW |
トナーが残り少なくなっています。
|
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
PrinterStateReason(int value) |
指定された整数値を使用して新しいプリンタ状態理由列挙値を構築します。
|
修飾子と型 | メソッド | 説明 |
---|---|---|
Class<? 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になり、PrinterStateReasons
属性の値はPAUSEDから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理由は、たとえ出力デバイスが1台だけの場合でもエラーではありません。 出力デバイスがジョブの受け入れを中止すると、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 Class<? extends Attribute> getCategory()
PrinterStateReasonクラス、およびベンダー定義の任意のサブクラスでは、カテゴリはPrinterStateReasonクラス自身になります。
getCategory
、インタフェースAttribute
java.lang.Class
クラスのインスタンス。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。