| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static Object[] | |
| private static DocFlavor[] | |
| private static DocFlavor[] | |
| private static DocFlavor[] | appPDF
List of DocFlavors, grouped based on matching mime-type. |
| private static DocFlavor[] | |
| private CUPSPrinter | |
| private CustomMediaSizeName[] | |
| private static final String | |
| public static final boolean | |
| private int | |
| private static final String | |
| private HashMap | |
| private boolean | |
| private static final byte | |
| private static final byte | |
| private static final byte | GRPTAG_OP_ATTRIBUTES
IPP Group Tags. |
| private static final byte | |
| private static DocFlavor[] | |
| private static DocFlavor[] | |
| private static DocFlavor[] | |
| private boolean | |
| private boolean | |
| private Boolean | |
| private boolean | |
| private static short | |
| private static int | |
| private MediaSizeName[] | |
| private MediaTray[] | |
| private URI | |
| private URL | |
| private transient ServiceNotifier | |
| public static final String | |
| public static final String | |
| public static final String | OP_GET_ATTRIBUTES
IPP Operation codes |
| private OutputBin[] | |
| private boolean | |
| private int[] | |
| private String | |
| private PrinterResolution[] | |
| private static Object[] | printReqAttribDefault
List of all PrintRequestAttributes. |
| private static Object[][] | serviceAttributes
List of all PrintServiceAttributes. |
| private static final byte | STATUSCODE_SUCCESS
IPP Status Codes |
| private Class | |
| private DocFlavor[] | |
| private static DocFlavor[] | |
| private static DocFlavor[] | |
| private static DocFlavor[] | |
| private static DocFlavor[] | |
| private HttpURLConnection |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| 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 |
| protected static void | |
| public boolean | equals(Object obj)
Overrides java. Implements javax. Determines if two services are referring to the same underlying service. |
| public CustomMediaSizeName | |
| public synchronized <T extends PrintServiceAttribute> T | getAttribute(Class<T> category)
Implements javax. Gets the value of the single specified service attribute. |
| public synchronized PrintServiceAttributeSet | getAttributes()
Implements javax. Obtains this print service's set of printer description attributes giving this Print Service's status. |
| public synchronized Object | getDefaultAttributeValue(Class<? extends Attribute> category)
Implements javax. Determines this print service's default printing attribute value in the given category. |
| pack-priv String | |
| public static HttpURLConnection | |
| private Media | |
| 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 PrinterResolution[] | |
| public ServiceUIFactory | getServiceUIFactory()
Implements javax. Returns a factory for UI components which allow users to interact with the service in various roles. |
| public synchronized Class | getSupportedAttributeCategories()
Implements javax. Determines the printing attribute categories a client can specify when setting up a job for this print service. |
| public synchronized 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 synchronized DocFlavor[] | getSupportedDocFlavors()
Implements javax. Determines the print data formats a client can specify when setting up a
job for this |
| private Media[] | |
| private OutputBin[] | |
| 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 int | hashCode()
Overrides java. Implements javax. This method should be implemented consistently with
|
| private 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 | |
| private boolean | |
| public boolean | isDocFlavorSupported(DocFlavor flavor)
Implements javax. Determines if this print service supports a specific |
| public boolean | |
| public synchronized boolean | |
| private boolean | |
| private synchronized boolean | |
| private synchronized boolean | |
| private boolean | |
| private static URL | |
| private void | |
| public static HashMap | |
| public void | removePrintServiceAttributeListener(PrintServiceAttributeListener listener)
Implements javax. Removes the print-service listener from this print service. |
| private static String | |
| 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 | |
| public static boolean |
| allDocFlavors | back to summary |
|---|---|
| private static Object[] allDocFlavors | |
| appOctetStream | back to summary |
|---|---|
| private static DocFlavor[] appOctetStream | |
| appPCL | back to summary |
|---|---|
| private static DocFlavor[] appPCL | |
| appPDF | back to summary |
|---|---|
| private static DocFlavor[] appPDF List of DocFlavors, grouped based on matching mime-type. Note For any change in the predefined DocFlavors, it must be reflected here also. | |
| appPostScript | back to summary |
|---|---|
| private static DocFlavor[] appPostScript | |
| cps | back to summary |
|---|---|
| private CUPSPrinter cps | |
| customMediaSizeNames | back to summary |
|---|---|
| private CustomMediaSizeName[] customMediaSizeNames | |
| debugPrefix | back to summary |
|---|---|
| private static final String debugPrefix | |
| debugPrint | back to summary |
|---|---|
| public static final boolean debugPrint | |
| defaultMediaIndex | back to summary |
|---|---|
| private int defaultMediaIndex | |
| FORCE_PIPE_PROP | back to summary |
|---|---|
| private static final String FORCE_PIPE_PROP | |
| getAttMap | back to summary |
|---|---|
| private HashMap<String, AttributeClass> getAttMap | |
| gifImagesAdded | back to summary |
|---|---|
| private boolean gifImagesAdded | |
| GRPTAG_END_ATTRIBUTES | back to summary |
|---|---|
| private static final byte GRPTAG_END_ATTRIBUTES | |
| GRPTAG_JOB_ATTRIBUTES | back to summary |
|---|---|
| private static final byte GRPTAG_JOB_ATTRIBUTES | |
| GRPTAG_OP_ATTRIBUTES | back to summary |
|---|---|
| private static final byte GRPTAG_OP_ATTRIBUTES IPP Group Tags. Each tag is used once before the first attribute of that group. | |
| GRPTAG_PRINTER_ATTRIBUTES | back to summary |
|---|---|
| private static final byte GRPTAG_PRINTER_ATTRIBUTES | |
| imageGIF | back to summary |
|---|---|
| private static DocFlavor[] imageGIF | |
| imageJPG | back to summary |
|---|---|
| private static DocFlavor[] imageJPG | |
| imagePNG | back to summary |
|---|---|
| private static DocFlavor[] imagePNG | |
| init | back to summary |
|---|---|
| private boolean init | |
| isCupsPrinter | back to summary |
|---|---|
| private boolean isCupsPrinter | |
| isPS | back to summary |
|---|---|
| private Boolean isPS | |
| jpgImagesAdded | back to summary |
|---|---|
| private boolean jpgImagesAdded | |
| MAX_ATTRIBUTE_LENGTH | back to summary |
|---|---|
| private static short MAX_ATTRIBUTE_LENGTH | |
| MAXCOPIES | back to summary |
|---|---|
| private static int MAXCOPIES | |
| mediaSizeNames | back to summary |
|---|---|
| private MediaSizeName[] mediaSizeNames | |
| mediaTrays | back to summary |
|---|---|
| private MediaTray[] mediaTrays | |
| myURI | back to summary |
|---|---|
| private URI myURI | |
| myURL | back to summary |
|---|---|
| private URL myURL | |
| notifier | back to summary |
|---|---|
| private transient ServiceNotifier notifier | |
| OP_CUPS_GET_DEFAULT | back to summary |
|---|---|
| public static final String OP_CUPS_GET_DEFAULT | |
| OP_CUPS_GET_PRINTERS | back to summary |
|---|---|
| public static final String OP_CUPS_GET_PRINTERS | |
| OP_GET_ATTRIBUTES | back to summary |
|---|---|
| public static final String OP_GET_ATTRIBUTES IPP Operation codes | |
| outputBins | back to summary |
|---|---|
| private OutputBin[] outputBins | |
| pngImagesAdded | back to summary |
|---|---|
| private boolean pngImagesAdded | |
| ppdResolutions | back to summary |
|---|---|
| private int[] ppdResolutions | |
| printer | back to summary |
|---|---|
| private String printer | |
| printerResolutions | back to summary |
|---|---|
| private PrinterResolution[] printerResolutions | |
| printReqAttribDefault | back to summary |
|---|---|
| private static Object[] printReqAttribDefault List of all PrintRequestAttributes. This is used for looping through all the IPP attribute name. | |
| serviceAttributes | back to summary |
|---|---|
| private static Object[][] serviceAttributes List of all PrintServiceAttributes. This is used for looping through all the IPP attribute name. | |
| STATUSCODE_SUCCESS | back to summary |
|---|---|
| private static final byte STATUSCODE_SUCCESS IPP Status Codes | |
| supportedCats | back to summary |
|---|---|
| private Class<?>[] supportedCats | |
| supportedDocFlavors | back to summary |
|---|---|
| private DocFlavor[] supportedDocFlavors | |
| textHtml | back to summary |
|---|---|
| private static DocFlavor[] textHtml | |
| textHtmlHost | back to summary |
|---|---|
| private static DocFlavor[] textHtmlHost | |
| textPlain | back to summary |
|---|---|
| private static DocFlavor[] textPlain | |
| textPlainHost | back to summary |
|---|---|
| private static DocFlavor[] textPlainHost | |
| urlConnection | back to summary |
|---|---|
| private HttpURLConnection urlConnection | |
| IPPPrintService | back to summary |
|---|---|
| pack-priv IPPPrintService(String name, URL url) | |
| IPPPrintService | back to summary |
|---|---|
| pack-priv IPPPrintService(String name, String uriStr, boolean isCups) | |
| 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
| |
| debug_println | back to summary |
|---|---|
| protected static void debug_println(String str) | |
| 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
| |
| findCustomMedia | back to summary |
|---|---|
| public CustomMediaSizeName findCustomMedia(MediaSizeName media) Finds matching CustomMediaSizeName of given media. | |
| getAttribute | back to summary |
|---|---|
| public synchronized <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 synchronized 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
| |
| getDefaultAttributeValue | back to summary |
|---|---|
| public synchronized 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
| |
| getDest | back to summary |
|---|---|
| pack-priv String getDest() | |
| getIPPConnection | back to summary |
|---|---|
| public static HttpURLConnection getIPPConnection(URL url) | |
| getIPPMedia | back to summary |
|---|---|
| private Media getIPPMedia(String mediaName) Returns the matching standard Media using string comparison of names. | |
| 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
| |
| getPrintResolutions | back to summary |
|---|---|
| private PrinterResolution[] getPrintResolutions() | |
| 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 synchronized 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 synchronized 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 synchronized 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
| |
| getSupportedMedia | back to summary |
|---|---|
| private Media[] getSupportedMedia() | |
| getSupportedOutputBins | back to summary |
|---|---|
| private OutputBin[] getSupportedOutputBins() | |
| 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
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements javax. Doc from javax. This method should be implemented consistently with
| |
| initAttributes | back to summary |
|---|---|
| private void initAttributes() | |
| 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) | |
| isDestinationSupported | back to summary |
|---|---|
| private boolean isDestinationSupported(DocFlavor flavor, AttributeSet attributes) | |
| 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
| |
| isIPPSupportedImages | back to summary |
|---|---|
| public boolean isIPPSupportedImages(String mimeType) | |
| isPostscript | back to summary |
|---|---|
| public synchronized boolean isPostscript() | |
| isSupportedCopies | back to summary |
|---|---|
| private boolean isSupportedCopies(Copies copies) | |
| isSupportedMedia | back to summary |
|---|---|
| private synchronized boolean isSupportedMedia(MediaSizeName msn) | |
| isSupportedMediaTray | back to summary |
|---|---|
| private synchronized boolean isSupportedMediaTray(MediaTray msn) | |
| isSupportedResolution | back to summary |
|---|---|
| private boolean isSupportedResolution(PrinterResolution res) | |
| newURL | back to summary |
|---|---|
private static URL newURL(String spec) throws MalformedURLException
| |
| opGetAttributes | back to summary |
|---|---|
| private void opGetAttributes() | |
| readIPPResponse | back to summary |
|---|---|
| public static HashMap | |
| 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
| |
| toHex | back to summary |
|---|---|
| private static String toHex(byte v) | |
| 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() | |
| writeIPPRequest | back to summary |
|---|---|
| public static boolean writeIPPRequest(OutputStream os, String operCode, AttributeClass[] attCl) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv EnumSyntax[] |
| ExtFinishing | back to summary |
|---|---|
| pack-priv ExtFinishing(int value) | |
| getAll | back to summary |
|---|---|
| pack-priv EnumSyntax[] getAll() | |