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名称值。 该地区提供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 - 文本字符串的自然语言。 
            null解释为默认的语言环境作为由返回Locale.getDefault() 
           NullPointerException - (未选中的异常)如果 
            info为空,则抛出。 
           public boolean equals(Object object)
object不为空。 object是PrinterInfo类的一个实例。 object的底层字符串相等。 object的区域设置相等。 equals在 
            TextSyntax 
           object - 要比较的对象。 
           object等效于此打印机info属性,则为true,否则为false。 
           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.