public class Printer extends javax.print.attribute.HashPrintRequestAttributeSet implements LayoutedPagesConsumer, java.io.Serializable
HashPrintRequestAttributeSet
for selecting and configuring a Printer as output device.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
legalCopyright |
Constructor and Description |
---|
Printer() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getPrinterName() |
int |
hashCode() |
void |
setPJLVariables(org.xml.sax.Attributes values)
Specifies PJL Environment Variables to be used to configure a PJL printer (see
setPrinterName(java.lang.String) )
Can be used to specify the value of PJL environment variables as listed by the utility PrinterInfo . |
void |
setPrinterName(java.lang.String printerName)
Selects a printer by name.
|
add, addAll, clear, containsKey, containsValue, get, isEmpty, remove, remove, size, toArray
public static final java.lang.String legalCopyright
public java.lang.String getPrinterName()
public void setPrinterName(java.lang.String printerName)
printerName
- A printer name as listed by the utility PrinterInfo
or a PJL printer host name name prefixed by the string "pjl:".public void setPJLVariables(org.xml.sax.Attributes values)
setPrinterName(java.lang.String)
)
Can be used to specify the value of PJL environment variables as listed by the utility PrinterInfo
.
Please note that strings (denoted as "QUOTED STRING") need to be quoted using double quotes.values
- An attribute set defining the PJL key/value pairspublic boolean equals(java.lang.Object o)
equals
in interface javax.print.attribute.AttributeSet
equals
in class javax.print.attribute.HashAttributeSet
public int hashCode()
hashCode
in interface javax.print.attribute.AttributeSet
hashCode
in class javax.print.attribute.HashAttributeSet