javax.print.attribute.standard
public final class PrinterURI extends URISyntax implements PrintServiceAttribute
PrinterURI
attribute provides the URI of a printer.
The URI identifies the printer against all the other print services available. This attribute is used to direct a print service request to this specific printer.
IPP Compatibility: PrinterURI is an IPP 1.1 attribute.
Constructor and Description |
---|
PrinterURI(URI uri)
Constructs a
PrinterURI object. |
public PrinterURI(URI uri)
PrinterURI
object.uri
- the URI of the print service.NullPointerException
- if the given uri is null.public boolean equals(Object obj)
equals
in class URISyntax
obj
- the object to testtrue
if both objects are equal,
false
otherwise.Object.hashCode()
public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
PrinterURI
itself.