public abstract class StreamPrintService extends java.lang.Object implements PrintService
StreamPrintService is a special print service capable of
printing into a supplied output stream.
Beside providing the same functionality as a print service it additionally
allows to specify the output stream for the print data. A stream print
service is obtained via the StreamPrintServiceFactory
by looking for services supporting a given output format type.
| Modifier | Constructor and Description |
|---|---|
protected |
StreamPrintService(java.io.OutputStream out)
Constructs a
StreamPrintService object. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose this
StreamPrintService object. |
abstract java.lang.String |
getOutputFormat()
Returns the document format emitted by this print service.
|
java.io.OutputStream |
getOutputStream()
Returns the
OutputStream of this object. |
boolean |
isDisposed()
Determines if this
StreamPrintService object is disposed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPrintServiceAttributeListener, createPrintJob, equals, getAttribute, getAttributes, getDefaultAttributeValue, getName, getServiceUIFactory, getSupportedAttributeCategories, getSupportedAttributeValues, getSupportedDocFlavors, getUnsupportedAttributes, hashCode, isAttributeCategorySupported, isAttributeValueSupported, isDocFlavorSupported, removePrintServiceAttributeListenerprotected StreamPrintService(java.io.OutputStream out)
StreamPrintService object.out - the OutputStream to usepublic void dispose()
StreamPrintService object.public abstract java.lang.String getOutputFormat()
DocFlavor class.public java.io.OutputStream getOutputStream()
OutputStream of this object.OutputStreampublic boolean isDisposed()
StreamPrintService object is disposed.true if disposed already,
otherwise false