public final class PrinterState extends EnumSyntax implements PrintServiceAttribute
PrinterStateReasons
属性はPrinterState属性を拡張し、ある状態のプリンタについてより詳細な情報を提供します。
IPP互換性: getName()
によって返されるカテゴリ名はIPP属性の名前です。 列挙の整数値はIPP列挙型値です。 toString()
メソッドは、属性値のIPP文字列表現を返します。
修飾子と型 | フィールド | 説明 |
---|---|---|
static PrinterState |
IDLE |
新しいジョブをすぐに処理できることを示します。
|
static PrinterState |
PROCESSING |
ジョブが処理中であることを示します。新しいジョブは処理待ちの状態になります。
|
static PrinterState |
STOPPED |
ジョブの処理ができない状態であり、何らかのアクションをとる必要があることを示します。
|
static PrinterState |
UNKNOWN |
プリンタの状態は不明です。
|
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
PrinterState(int value) |
指定された整数値を使用して新しいプリンタ状態列挙値を構築します。
|
修飾子と型 | メソッド | 説明 |
---|---|---|
Class<? extends Attribute> |
getCategory() |
この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
|
protected EnumSyntax[] |
getEnumValueTable() |
PrinterStateクラスの列挙値テーブルを返します。
|
String |
getName() |
属性値がインスタンスとなるカテゴリの名前を返します。
|
protected String[] |
getStringTable() |
PrinterStateクラスの文字列テーブルを返します。
|
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)
value
- 整数値。protected String[] getStringTable()
getStringTable
、クラスEnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
、クラスEnumSyntax
public final Class<? extends Attribute> getCategory()
PrinterStateクラスの場合、カテゴリはPrinterStateクラス自身です。
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も参照してください。