public final class PrinterURI extends javax.print.attribute.URISyntax implements javax.print.attribute.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(java.net.URI uri)
Constructs a
PrinterURI object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the given object is equal to this object.
|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
public PrinterURI(java.net.URI uri)
PrinterURI object.uri - the URI of the print service.java.lang.NullPointerException - if the given uri is null.public boolean equals(java.lang.Object obj)
equals in class javax.print.attribute.URISyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributePrinterURI itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute