SimpleDoc
Class SimpleDoc
- java.lang.Object
-
- javax.print.SimpleDoc
- All Implemented Interfaces:
- Doc
public final class SimpleDoc extends Object implements Doc
This class is an implementation of interface Doc
that can be used in many common printing requests. It can handle all of the presently defined "pre-defined" doc flavors defined as static variables in the DocFlavor class.
In particular this class implements certain required semantics of the Doc specification as follows:
- constructs a stream for the service if requested and appropriate.
- ensures the same object is returned for each call on a method.
- ensures multiple threads can access the Doc