StreamPrintServiceFactory is the factory for
StreamPrintService instances, which can print to an output stream in
a particular document format described as a mime type. A typical output
document format may be Postscript(TM).
This class is implemented by a service and located by the implementation
using the ServiceLoader facility.
Applications locate instances of this class by calling the
lookupStreamPrintServiceFactories(DocFlavor, String) method.
Applications can use a StreamPrintService obtained from a factory in
place of a PrintService which represents a physical printer device.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | StreamPrintServiceFactory.
Contains a list of factories. |
| Modifier and Type | Field and Description |
|---|---|
| private static final StreamPrintServiceFactory. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static ArrayList | |
| private static ArrayList | Returns: matching factories for stream print service instance, empty if no suitable factories could be locatedof the input document type - flavor, String null means match all
typesrepresenting the required output format, used to identify
suitable stream printer factories. A value of outType)null means
match all formats.Utility method for |
| private static ArrayList | |
| public abstract String | Returns: the output format described as a mime typeQueries the factory for the document format that is emitted by printers obtained from this factory. |
| public abstract StreamPrintService | Returns: aPrintService which will generate the format specified
by the DocFlavor supported by this factorydestination stream for generated output out)Returns a |
| private static StreamPrintServiceFactory. | |
| public abstract DocFlavor[] | Returns: array of supported doc flavorsQueries the factory for the document flavors that can be accepted by printers obtained from this factory. |
| private static ArrayList | |
| private static boolean | |
| public static StreamPrintServiceFactory[] | Returns: matching factories for stream print service instance, empty if no suitable factories could be locatedof the input document type - flavor, String null means match all
typesrepresenting the required output format, used to
identify suitable stream printer factories. A value of
outputMimeType)null means match all formats.Locates factories for print services that can be used with a print job to
output a stream of data in the format specified by
|
| SERVICES | back to summary |
|---|---|
| private static final StreamPrintServiceFactory. | |
| StreamPrintServiceFactory | back to summary |
|---|---|
| protected StreamPrintServiceFactory() Constructor for subclasses to call. | |
| getAllFactories | back to summary |
|---|---|
| private static ArrayList Returns all factories for print services.
| |
| getFactories | back to summary |
|---|---|
| private static ArrayList Utility method for
Locates factories for print services that can be used with a print job to
output a stream of data in the format specified by
| |
| getListOfFactories | back to summary |
|---|---|
| private static ArrayList Returns the list of factories.
| |
| getOutputFormat | back to summary |
|---|---|
| public abstract String getOutputFormat() Queries the factory for the document format that is emitted by printers obtained from this factory.
| |
| getPrintService | back to summary |
|---|---|
| public abstract StreamPrintService getPrintService(OutputStream out) Returns a
Whereas a
| |
| getServices | back to summary |
|---|---|
| private static StreamPrintServiceFactory. Returns the singleton Services instance.
| |
| getSupportedDocFlavors | back to summary |
|---|---|
| public abstract DocFlavor[] getSupportedDocFlavors() Queries the factory for the document flavors that can be accepted by printers obtained from this factory.
| |
| initListOfFactories | back to summary |
|---|---|
| private static ArrayList Initialize the list of factories.
| |
| isMember | back to summary |
|---|---|
| private static boolean isMember(DocFlavor flavor, DocFlavor[] flavors) Checks if the array of | |
| lookupStreamPrintServiceFactories | back to summary |
|---|---|
| public static StreamPrintServiceFactory[] lookupStreamPrintServiceFactories(DocFlavor flavor, String outputMimeType) Locates factories for print services that can be used with a print job to
output a stream of data in the format specified by
The
Although
| |
| Modifier and Type | Field and Description |
|---|---|
| private ArrayList | listOfFactories
The list of factories. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| listOfFactories | back to summary |
|---|---|
| private ArrayList<StreamPrintServiceFactory> listOfFactories The list of factories. | |
| Services | back to summary |
|---|---|
| pack-priv Services() | |