public final class Destination extends URISyntax implements PrintJobAttribute, PrintRequestAttribute
此属性的一个常见用途是想将输出重定向到本地磁盘文件的应用:如“文件了。---”。注意,适当建设”文件:“方案实例应用类中的方法进行File
toURI()
。看到关于该类的文档以了解更多信息。
如果一个目标URI是一printrequest指定的打字输出是不可访问的,一个printexception将抛出。的printexception可以实现uriexception提供更具体的原因。
聚丙烯的相容性:目的地不是一个IPP的属性。
public Destination(URI uri)
uri
- URI。
NullPointerException
-(unchecked异常)如果
uri
空抛。
public boolean equals(Object object)
object
不空。object
是类目的地的一个实例。object
的URI是平等的。equals
方法重写,继承类
URISyntax
object
对象比较。
object
相当于该目的地属性真,否则为假。
Object.hashCode()
,
HashMap
public final 类<? extends Attribute> getCategory()
对于类的目的地,类是类目的地本身。
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.