- java.lang.Object
-
- javax.print.attribute.URISyntax
-
- javax.print.attribute.standard.PrinterMoreInfo
-
- All Implemented Interfaces:
-
Serializable,Cloneable,Attribute,PrintServiceAttribute
public final class PrinterMoreInfo extends URISyntax implements PrintServiceAttribute
PrinterMoreInfo类是打印属性类(URI),用于获取有关此特定打印机的更多信息。 例如,这可以是引用Web浏览器可访问的HTML页面的HTTP类型的URI。 从该URI获取的信息用于最终用户消费。 可以从该URI访问Print Service API范围之外的功能。 该信息旨在针对此打印机实例和站点特定服务(例如,作业定价,提供的服务,最终用户帮助)。相比之下,
PrinterMoreInfoManufacturer属性用于了解有关此一般打印机的更多信息,而不是该特定打印机。IPP兼容性:由
toString()返回的字符串形式给出了IPP uri值。 由getName()返回的类别名称提供IPP属性名称。- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 PrinterMoreInfo(URI uri)使用指定的URI构造一个新的打印机more info属性。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 booleanequals(Object object)返回此打印机的更多信息属性是否等同于传入的对象。Class<? extends Attribute>getCategory()获取要用作此打印属性值的“类别”的打印属性类。StringgetName()获取此属性值是一个实例的类别的名称。
-
-
-
构造方法详细信息
-
PrinterMoreInfo
public PrinterMoreInfo(URI uri)
使用指定的URI构造一个新的打印机more info属性。- 参数
-
uri- URI。 - 异常
-
NullPointerException- (未选中的异常)如果uri为空,则抛出。
-
-
方法详细信息
-
equals
public boolean equals(Object object)
返回此打印机的更多信息属性是否等同于传入的对象。 要相等的,所有以下条件必须为真:-
object不为空。 -
object是PrinterMoreInfo类的一个实例。 - 这个打印机更多的info属性的URI和
object的URI是相等的。
- 重写:
-
equals在URISyntax - 参数
-
object- 要比较的对象。 - 结果
-
如果
object相当于此打印机的info属性,objecttrue,否则为false。 - 另请参见:
-
Object.hashCode(),HashMap
-
-
getCategory
public final Class<? extends Attribute> getCategory()
获取要用作此打印属性值的“类别”的打印属性类。对于PrinterMoreInfo类,该类别是PrinterMoreInfo类。
- Specified by:
-
getCategory在接口Attribute - 结果
-
打印属性类(category),一个
java.lang.Class类的实例。
-
-