javax.print

Interface CancelablePrintJob

public interface CancelablePrintJob extends DocPrintJob

CancelablePrintJob represents a print job which can be canceled.

It is implemented by DocPrintJobs 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 {@link javax.print.event.PrintJobEvent#JOB_CANCELED} should be delivered to registered clients. Implementations have to be thread-safe.

Method Summary
voidcancel()
Cancel the print job.

Method Detail

cancel

public void cancel()
Cancel the print job.

Throws: PrintException if an error during cancellation occurs.