public interface CancelablePrintJob extends DocPrintJob
CancelablePrintJob
represents a print job which can be
canceled.
It is implemented by DocPrintJob
s which support to cancel
a print job during processing. Clients need to explicitly test if a given
DocPrintJob
object from a print service implementes this
interface and therefore supports cancelling.
Implementor of java print services should implement this interface if
cancelling is supported by the underlying print system. If implemented the
corresponding print job event
PrintJobEvent.JOB_CANCELED
should be delivered to
registered clients. Implementations have to be thread-safe.
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the print job.
|
addPrintJobAttributeListener, addPrintJobListener, getAttributes, getPrintService, print, removePrintJobAttributeListener, removePrintJobListener
void cancel() throws PrintException
PrintException
- if an error during cancellation occurs.