|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.print.StreamPrintServiceFactory
public abstract class StreamPrintServiceFactory
A 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 SPI JAR File specification.
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.
Constructor Summary | |
---|---|
StreamPrintServiceFactory()
|
Method Summary | |
---|---|
abstract String |
getOutputFormat()
Queries the factory for the document format that is emitted by printers obtained from this factory. |
abstract StreamPrintService |
getPrintService(OutputStream out)
Returns a StreamPrintService that can print to
the specified output stream. |
abstract DocFlavor[] |
getSupportedDocFlavors()
Queries the factory for the document flavors that can be accepted by printers obtained from this factory. |
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 flavor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, |