| Modifier and Type | Field and Description |
|---|---|
| private static String | |
| private boolean | |
| private transient PrintServiceAttributeSet | |
| pack-priv String[] | |
| pack-priv String[] | |
| private static int | |
| private static final MediaSizeName[] | |
| private static MediaPrintableArea[] | |
| private PrinterName | |
| private transient ServiceNotifier | |
| private static final Class | |
| private String | |
| private static final Class | |
| private static DocFlavor[] | |
| private static final DocFlavor[] | |
| private static final DocFlavor[] | |
| private static DocFlavor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPrintServiceAttributeListener(PrintServiceAttributeListener listener)
Implements javax. Registers a listener for events on this |
| public DocPrintJob | createPrintJob()
Implements javax. Creates and returns a |
| public boolean | equals(Object obj)
Overrides java. Implements javax. Determines if two services are referring to the same underlying service. |
| protected static String[] | |
| private PrintServiceAttributeSet | |
| private MediaPrintableArea[] | |
| public <T extends PrintServiceAttribute> T | getAttribute(Class<T> category)
Implements javax. Gets the value of the single specified service attribute. |
| public PrintServiceAttributeSet | getAttributes()
Implements javax. Obtains this print service's set of printer description attributes giving this Print Service's status. |
| private PrintServiceAttributeSet | |
| public Object | getDefaultAttributeValue(Class<? extends Attribute> category)
Implements javax. Determines this print service's default printing attribute value in the given category. |
| private PrintServiceAttributeSet | |
| public String | getName()
Implements javax. Returns a string name for this print service which may be used by applications to request a particular print service. |
| private PrinterIsAcceptingJobs | |
| private PrinterIsAcceptingJobs | |
| private PrinterIsAcceptingJobs | |
| private PrinterName | |
| private PrinterState | |
| private PrinterStateReasons | |
| private QueuedJobCount | |
| private QueuedJobCount | |
| private QueuedJobCount | |
| public ServiceUIFactory | getServiceUIFactory()
Implements javax. Returns a factory for UI components which allow users to interact with the service in various roles. |
| public Class | getSupportedAttributeCategories()
Implements javax. Determines the printing attribute categories a client can specify when setting up a job for this print service. |
| public Object | getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes)
Implements javax. Determines the printing attribute values a client can specify in the given category when setting up a job for this print service. |
| public DocFlavor[] | getSupportedDocFlavors()
Implements javax. Determines the print data formats a client can specify when setting up a
job for this |
| public AttributeSet | getUnsupportedAttributes(DocFlavor flavor, AttributeSet attributes)
Implements javax. Identifies the attributes that are unsupported for a print request in the
context of a particular |
| public PrintServiceAttributeSet | |
| public int | hashCode()
Overrides java. Implements javax. This method should be implemented consistently with
|
| private void | |
| public void | |
| public boolean | isAttributeCategorySupported(Class<? extends Attribute> category)
Implements javax. Determines whether a client can specify the given printing attribute category when setting up a job for this print service. |
| public boolean | isAttributeValueSupported(Attribute attr, DocFlavor flavor, AttributeSet attributes)
Implements javax. Determines whether a client can specify the given printing attribute value when setting up a job for this Print Service. |
| private boolean | |
| public boolean | isDocFlavorSupported(DocFlavor flavor)
Implements javax. Determines if this print service supports a specific |
| private boolean | |
| private boolean | |
| private boolean | |
| public void | removePrintServiceAttributeListener(PrintServiceAttributeListener listener)
Implements javax. Removes the print-service listener from this print service. |
| public String | |
| public boolean | usesClass(Class<?> c)
Implements sun. This returns true if this service is implemented using the platform's built-in subclass of PrinterJob. |
| public void |
| encoding | back to summary |
|---|---|
| private static String encoding | |
| isInvalid | back to summary |
|---|---|
| private boolean isInvalid | |
| lastSet | back to summary |
|---|---|
| private transient PrintServiceAttributeSet lastSet | |
| lpcQueueCom | back to summary |
|---|---|
| pack-priv String[] lpcQueueCom | |
| lpcStatusCom | back to summary |
|---|---|
| pack-priv String[] lpcStatusCom | |
| MAXCOPIES | back to summary |
|---|---|
| private static int MAXCOPIES | |
| mediaSizes | back to summary |
|---|---|
| private static final MediaSizeName[] mediaSizes | |
| mpas | back to summary |
|---|---|
| private static MediaPrintableArea[] mpas | |
| name | back to summary |
|---|---|
| private PrinterName name | |
| notifier | back to summary |
|---|---|
| private transient ServiceNotifier notifier | |
| otherAttrCats | back to summary |
|---|---|
| private static final Class<?>[] otherAttrCats | |
| printer | back to summary |
|---|---|
| private String printer | |
| serviceAttrCats | back to summary |
|---|---|
| private static final Class<?>[] serviceAttrCats | |
| supportedDocFlavors | back to summary |
|---|---|
| private static DocFlavor[] supportedDocFlavors | |
| supportedDocFlavorsInit | back to summary |
|---|---|
| private static final DocFlavor[] supportedDocFlavorsInit | |
| supportedHostDocFlavors | back to summary |
|---|---|
| private static final DocFlavor[] supportedHostDocFlavors | |
| textByteFlavor | back to summary |
|---|---|
| private static DocFlavor textByteFlavor | |
| UnixPrintService | back to summary |
|---|---|
| pack-priv UnixPrintService(String name) | |
| addPrintServiceAttributeListener | back to summary |
|---|---|
| public void addPrintServiceAttributeListener(PrintServiceAttributeListener listener) Implements javax. Doc from javax. Registers a listener for events on this
| |
| createPrintJob | back to summary |
|---|---|
| public DocPrintJob createPrintJob() Implements javax. Doc from javax. Creates and returns a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements javax. Doc from javax. Determines if two services are referring to the same underlying service. Objects encapsulating a print service may not exhibit equality of reference even though they refer to the same underlying service. Clients should call this method to determine if two services are referring to the same underlying service.
Services must implement this method and return
| |
| filterPrinterNamesAIX | back to summary |
|---|---|
| protected static String[] filterPrinterNamesAIX(String[] posPrinters) | |
| getAIXServiceAttributes | back to summary |
|---|---|
| private PrintServiceAttributeSet getAIXServiceAttributes() | |
| getAllPrintableAreas | back to summary |
|---|---|
| private MediaPrintableArea[] getAllPrintableAreas() | |
| getAttribute | back to summary |
|---|---|
| public <T extends PrintServiceAttribute> T getAttribute(Class<T> category) Implements javax. Doc from javax. Gets the value of the single specified service attribute. This may be useful to clients which only need the value of one attribute and want to minimize overhead.
| |
| getAttributes | back to summary |
|---|---|
| public PrintServiceAttributeSet getAttributes() Implements javax. Doc from javax. Obtains this print service's set of printer description attributes giving
this Print Service's status. The returned attribute set object is
unmodifiable. The returned attribute set object is a "snapshot" of this
Print Service's attribute set at the time of the
| |
| getBSDServiceAttributes | back to summary |
|---|---|
| private PrintServiceAttributeSet getBSDServiceAttributes() | |
| getDefaultAttributeValue | back to summary |
|---|---|
| public Object getDefaultAttributeValue(Class<? extends Attribute> category) Implements javax. Doc from javax. Determines this print service's default printing attribute value in the
given category. A printing attribute value is an instance of a class that
implements interface
Some attributes may not be supported in a particular context (ie for a
particular
Not all attributes have a default value. For example the service will not
have a default value for
| |
| getDynamicAttributes | back to summary |
|---|---|
| private PrintServiceAttributeSet getDynamicAttributes() | |
| getName | back to summary |
|---|---|
| public String getName() Implements javax. Doc from javax. Returns a string name for this print service which may be used by
applications to request a particular print service. In a suitable
context, such as a name service, this name must be unique. In some
environments this unique name may be the same as the user friendly
printer name defined as the
| |
| getPrinterIsAcceptingJobs | back to summary |
|---|---|
| private PrinterIsAcceptingJobs getPrinterIsAcceptingJobs() | |
| getPrinterIsAcceptingJobsAIX | back to summary |
|---|---|
| private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsAIX() | |
| getPrinterIsAcceptingJobsBSD | back to summary |
|---|---|
| private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsBSD() | |
| getPrinterName | back to summary |
|---|---|
| private PrinterName getPrinterName() | |
| getPrinterState | back to summary |
|---|---|
| private PrinterState getPrinterState() | |
| getPrinterStateReasons | back to summary |
|---|---|
| private PrinterStateReasons getPrinterStateReasons() | |
| getQueuedJobCount | back to summary |
|---|---|
| private QueuedJobCount getQueuedJobCount() | |
| getQueuedJobCountAIX | back to summary |
|---|---|
| private QueuedJobCount getQueuedJobCountAIX() | |
| getQueuedJobCountBSD | back to summary |
|---|---|
| private QueuedJobCount getQueuedJobCountBSD() | |
| getServiceUIFactory | back to summary |
|---|---|
| public ServiceUIFactory getServiceUIFactory() Implements javax. Doc from javax. Returns a factory for UI components which allow users to interact with
the service in various roles. Services which do not provide any UI should
return
| |
| getSupportedAttributeCategories | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Determines the printing attribute categories a client can specify when
setting up a job for this print service. A printing attribute category is
designated by a
This method returns all the printing attribute categories this print
service supports for any possible job. Some categories may not be
supported in a particular context (ie for a particular
| |
| getSupportedAttributeValues | back to summary |
|---|---|
| public Object getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes) Implements javax. Doc from javax. Determines the printing attribute values a client can specify in the
given category when setting up a job for this print service. A printing
attribute value is an instance of a class that implements interface
If
If the
This method returns an
| |
| getSupportedDocFlavors | back to summary |
|---|---|
| public DocFlavor[] getSupportedDocFlavors() Implements javax. Doc from javax. Determines the print data formats a client can specify when setting up a
job for this
Note that some doc flavors may not be supported in combination with all
attributes. Use
| |
| getUnsupportedAttributes | back to summary |
|---|---|
| public AttributeSet getUnsupportedAttributes(DocFlavor flavor, AttributeSet attributes) Implements javax. Doc from javax. Identifies the attributes that are unsupported for a print request in the
context of a particular
If the return value is
A supported print request can then be created by removing all unsupported
attributes from the original attribute set, except in the case that the
If any attributes are unsupported only because they are in conflict with other attributes then it is at the discretion of the service to select the attribute(s) to be identified as the cause of the conflict.
Use
| |
| getUpdatedAttributes | back to summary |
|---|---|
| public PrintServiceAttributeSet getUpdatedAttributes() Implements sun.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements javax. Doc from javax. This method should be implemented consistently with
| |
| initSupportedDocFlavors | back to summary |
|---|---|
| private void initSupportedDocFlavors() | |
| invalidateService | back to summary |
|---|---|
| public void invalidateService() | |
| isAttributeCategorySupported | back to summary |
|---|---|
| public boolean isAttributeCategorySupported(Class<? extends Attribute> category) Implements javax. Doc from javax. Determines whether a client can specify the given printing attribute
category when setting up a job for this print service. A printing
attribute category is designated by a
Some categories may not be supported in a particular context (ie for a
particular
This is a convenience method to determine if the category would be a
member of the result of
| |
| isAttributeValueSupported | back to summary |
|---|---|
| public boolean isAttributeValueSupported(Attribute attr, DocFlavor flavor, AttributeSet attributes) Implements javax. Doc from javax. Determines whether a client can specify the given printing attribute
value when setting up a job for this Print Service. A printing attribute
value is an instance of a class that implements interface
If
Also if
This is a convenience method to determine if the value would be a member
of the result of
| |
| isAutoSense | back to summary |
|---|---|
| private boolean isAutoSense(DocFlavor flavor) | |
| isDocFlavorSupported | back to summary |
|---|---|
| public boolean isDocFlavorSupported(DocFlavor flavor) Implements javax. Doc from javax. Determines if this print service supports a specific
Note that some doc flavors may not be supported in combination with all
attributes. Use
| |
| isServiceFormattedFlavor | back to summary |
|---|---|
| private boolean isServiceFormattedFlavor(DocFlavor flavor) | |
| isSupportedCopies | back to summary |
|---|---|
| private boolean isSupportedCopies(Copies copies) | |
| isSupportedMedia | back to summary |
|---|---|
| private boolean isSupportedMedia(MediaSizeName msn) | |
| removePrintServiceAttributeListener | back to summary |
|---|---|
| public void removePrintServiceAttributeListener(PrintServiceAttributeListener listener) Implements javax. Doc from javax. Removes the print-service listener from this print service. This means
the listener is no longer interested in
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| usesClass | back to summary |
|---|---|
| public boolean usesClass(Class<?> c) Implements sun. Doc from sun. This returns true if this service is implemented using the platform's built-in subclass of PrinterJob. ie the same class as the caller.
| |
| wakeNotifier | back to summary |
|---|---|
| public void wakeNotifier() | |