public final class PrinterInfo extends TextSyntax implements PrintServiceAttribute
"This printer can be used for printing color transparencies for HR presentations",或
"Out of courtesy for others, please print only small (1-5 page) jobs at this printer",甚至\
"This printer is going away on July 1, 1997, please find a new printer"。
聚丙烯的相容性:字符串值给出了IPP的名称值。现场给出了IPP的自然语言。返回getName()类别名称为IPP的属性名称。
| Constructor and Description |
|---|
PrinterInfo(String info, Locale locale)
用给定的信息字符串和区域设置构造一个新的打印机信息属性。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
返回此打印机信息属性是否等效于对象的传递。
|
类<? extends Attribute> |
getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
String |
getName()
获取此属性值的类别的名称,即一个实例。
|
getLocale, getValue, hashCode, toStringpublic PrinterInfo(String info, Locale locale)
info打印机信息的字符串。
locale -自然语言文本字符串。零意味着默认区域设置为返回
Locale.getDefault()
NullPointerException -(unchecked异常)如果
info空抛。
public boolean equals(Object object)
object不空。object是类printerinfo实例。object基本相等。object的现场都是平等的。equals 方法重写,继承类
TextSyntax
object对象比较。
object相当于这台打印机信息属性真,否则为假。
Object.hashCode(),
HashMap
public final 类<? extends Attribute> getCategory()
printerinfo类,类类printerinfo本身。
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.