java.lang.Object
javax.print.attribute.TextSyntax
javax.print.attribute.standard.PrinterInfo
- 所有已实现的接口:
Serializable
,Cloneable
,Attribute
,PrintServiceAttribute
类
PrinterInfo
是一个打印属性类,一个文本属性,它提供了关于打印机的描述信息。这可能包括以下内容: "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 名称值。locale为 IPP 提供了自然语言。 getName()
返回的类别名称给出了 IPP 属性名称。
- 参见:
-
构造方法总结
构造方法 -
方法总结
在类 javax.print.attribute.TextSyntax 中声明的方法
getLocale, getValue, hashCode, toString
-
构造方法详细信息
-
PrinterInfo
使用给定的信息字符串和区域设置构造一个新的打印机信息属性。- 参数:
info
- 打印机信息字符串locale
- 文本字符串的自然语言。null
被解释为表示由Locale.getDefault()
返回的默认locale- 抛出:
NullPointerException
- 如果info
是null
-
-
方法详情
-
equals
返回此打印机信息属性是否等效于传入的对象。要等效,必须满足以下所有条件:object
不是null
。object
是类PrinterInfo
的实例。- 此打印机信息属性的基础字符串和
object
的基础字符串相同。 - 此打印机信息属性的区域设置和
object
的区域设置相同。
- 重写:
equals
在类TextSyntax
中- 参数:
object
-Object
比较- 返回:
true
如果object
相当于此打印机信息属性,false
否则- 参见:
-
getCategory
获取将用作此打印属性值的“类别”的打印属性类。对于类
PrinterInfo
,类别是类PrinterInfo
本身。- 指定者:
getCategory
在接口Attribute
中- 返回:
-
打印属性类(类别),类
java.lang.Class
的一个实例
-
getName
获取此属性值是其实例的类别的名称。对于类
PrinterInfo
,类别名称是"printer-info"
。
-