| Modifier and Type | Field and Description |
|---|---|
| private transient ArrayList | |
| private int | |
| private Doc | |
| private boolean | |
| private InputStream | |
| private PrinterJob | |
| private PrintJobAttributeSet | |
| private transient ArrayList | |
| private String | |
| private transient ArrayList | |
| private MediaSize | |
| private OrientationRequested | |
| private boolean | |
| private boolean | |
| private Reader | |
| private PrintRequestAttributeSet | |
| private PSStreamPrintService |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPrintJobAttributeListener(PrintJobAttributeListener listener, PrintJobAttributeSet attributes)
Implements javax. Registers a listener for changes in the specified attributes. |
| public void | addPrintJobListener(PrintJobListener listener)
Implements javax. Registers a listener for event occurring during this print job. |
| public void | |
| private void | |
| public PrintJobAttributeSet | getAttributes()
Implements javax. Obtains this Print Job's set of printing attributes. |
| private void | |
| public PrintService | getPrintService()
Implements javax. Determines the |
| private synchronized void | |
| private void | |
| public void | |
| public void | print(Doc doc, PrintRequestAttributeSet attributes)
Implements javax. Prints a document with the specified job attributes. |
| public void | |
| public void | removePrintJobAttributeListener(PrintJobAttributeListener listener)
Implements javax. Removes an attribute listener from this print job. |
| public void | removePrintJobListener(PrintJobListener listener)
Implements javax. Removes a listener from this print job. |
| attrListeners | back to summary |
|---|---|
| private transient ArrayList<PrintJobAttributeListener> attrListeners | |
| copies | back to summary |
|---|---|
| private int copies | |
| doc | back to summary |
|---|---|
| private Doc doc | |
| fidelity | back to summary |
|---|---|
| private boolean fidelity | |
| instream | back to summary |
|---|---|
| private InputStream instream | |
| job | back to summary |
|---|---|
| private PrinterJob job | |
| jobAttrSet | back to summary |
|---|---|
| private PrintJobAttributeSet jobAttrSet | |
| jobListeners | back to summary |
|---|---|
| private transient ArrayList<PrintJobListener> jobListeners | |
| jobName | back to summary |
|---|---|
| private String jobName | |
| listenedAttributeSets | back to summary |
|---|---|
| private transient ArrayList<PrintJobAttributeSet> listenedAttributeSets | |
| mediaSize | back to summary |
|---|---|
| private MediaSize mediaSize | |
| orient | back to summary |
|---|---|
| private OrientationRequested orient | |
| printing | back to summary |
|---|---|
| private boolean printing | |
| printReturned | back to summary |
|---|---|
| private boolean printReturned | |
| reader | back to summary |
|---|---|
| private Reader reader | |
| reqAttrSet | back to summary |
|---|---|
| private PrintRequestAttributeSet reqAttrSet | |
| service | back to summary |
|---|---|
| private PSStreamPrintService service | |
| PSStreamPrintJob | back to summary |
|---|---|
| pack-priv PSStreamPrintJob(PSStreamPrintService service) | |
| addPrintJobAttributeListener | back to summary |
|---|---|
| public void addPrintJobAttributeListener(PrintJobAttributeListener listener, PrintJobAttributeSet attributes) Implements javax. Doc from javax. Registers a listener for changes in the specified attributes. If listener
is If listener is already registered, it will be registered again. | |
| addPrintJobListener | back to summary |
|---|---|
| public void addPrintJobListener(PrintJobListener listener) Implements javax. Doc from javax. Registers a listener for event occurring during this print job. If
listener is | |
| cancel | back to summary |
|---|---|
| public void cancel() throws PrintException Implements javax. Doc from javax. Stops further processing of a print job. If a service supports this method it cannot be concluded that job cancellation will always succeed. A job may not be able to be cancelled once it has reached and passed some point in its processing. A successful cancellation means only that the entire job was not printed, some portion may already have printed when cancel returns.
The service will throw a Cancellation in some services may be a lengthy process, involving requests to a server and processing of its print queue. Clients may wish to execute cancel in a thread which does not affect application execution.
| |
| closeDataStreams | back to summary |
|---|---|
| private void closeDataStreams() | |
| getAttributes | back to summary |
|---|---|
| public PrintJobAttributeSet getAttributes() Implements javax. Doc from javax. Obtains this Print Job's set of printing attributes. The returned
attribute set object is unmodifiable. The returned attribute set object
is a "snapshot" of this Print Job's attribute set at the time of the
| |
| getAttributeValues | back to summary |
|---|---|
| private void getAttributeValues(DocFlavor flavor) throws PrintException | |
| getPrintService | back to summary |
|---|---|
| public PrintService getPrintService() Implements javax. Doc from javax. Determines the | |
| initializeAttributeSets | back to summary |
|---|---|
| private synchronized void initializeAttributeSets(Doc doc, PrintRequestAttributeSet reqSet) | |
| notifyEvent | back to summary |
|---|---|
| private void notifyEvent(int reason) | |
| pageableJob | back to summary |
|---|---|
| public void pageableJob(Pageable pageable, PrintRequestAttributeSet attributes) throws PrintException | |
| back to summary | |
|---|---|
| public void print(Doc doc, PrintRequestAttributeSet attributes) throws PrintException Implements javax. Doc from javax. Prints a document with the specified job attributes. This method should
only be called once for a given print job. Calling it again will not
result in a new job being spooled to the printer. The service
implementation will define policy for service interruption and recovery.
When the print method returns, printing may not yet have completed as
printing may happen asynchronously, perhaps in a different thread.
Application clients which want to monitor the success or failure should
register a
Print service implementors should close any print data streams (ie
| |
| printableJob | back to summary |
|---|---|
| public void printableJob(Printable printable, PrintRequestAttributeSet attributes) throws PrintException | |
| removePrintJobAttributeListener | back to summary |
|---|---|
| public void removePrintJobAttributeListener(PrintJobAttributeListener listener) Implements javax. Doc from javax. Removes an attribute listener from this print job. This method performs
no function, nor does it throw an exception, if the listener specified by
the argument was not previously added to this print job. If the listener
is | |
| removePrintJobListener | back to summary |
|---|---|
| public void removePrintJobListener(PrintJobListener listener) Implements javax. Doc from javax. Removes a listener from this print job. This method performs no function,
nor does it throw an exception, if the listener specified by the argument
was not previously added to this print job. If listener is | |