javax.print
Interface MultiDocPrintJob
- All Superinterfaces:
- DocPrintJob
public interface MultiDocPrintJob
- extends DocPrintJob
MultiDocPrintJob
represents a print job which supports
printing of multiple documents as one print job.
An instance can be obtained from every MultiDocPrintService
available by calling the
MultiDocPrintService.createMultiDocPrintJob()
method.
A print job is bound to the print service it is created from.
Method Summary |
void |
print(MultiDoc multiDoc,
PrintRequestAttributeSet attributes)
Prints the documents supplied in the given MultiDoc object
as one print job with the given printing attributes. |
print
void print(MultiDoc multiDoc,
PrintRequestAttributeSet attributes)
throws PrintException
- Prints the documents supplied in the given
MultiDoc
object
as one print job with the given printing attributes.
- Parameters:
multiDoc
- the documents to print. Every document must have a
flavor supported by the bound print service.attributes
- the printing attributes to apply to the print job. If
null
the default attribute values will be used.
- Throws:
PrintException
- if an error occurs. The thrown exception may
implement refining print exception interface to provide more detail of
the error.- See Also:
FlavorException
,
AttributeException