Uses of Class
javax.print.DocFlavor
Packages that use DocFlavor
Package
Description
Provides the principal classes and interfaces for the Java Print
Service API.
-
Uses of DocFlavor in javax.print
Subclasses of DocFlavor in javax.printModifier and TypeClassDescriptionstatic classClassDocFlavor.BYTE_ARRAYprovides predefined static constantDocFlavorobjects for example doc flavors using a byte array (byte[]) as the print data representation class.static classClassDocFlavor.CHAR_ARRAYprovides predefined static constantDocFlavorobjects for example doc flavors using a character array (char[]) as the print data representation class.static classClassDocFlavor.INPUT_STREAMprovides predefined static constantDocFlavorobjects for example doc flavors using a byte stream (java.io.InputStream) as the print data representation class.static classClassDocFlavor.READERprovides predefined static constantDocFlavorobjects for example doc flavors using a character stream (java.io.Reader) as the print data representation class.static classClassDocFlavor.SERVICE_FORMATTEDprovides predefined static constantDocFlavorobjects for example doc flavors for service formatted print data.static classClassDocFlavor.STRINGprovides predefined static constantDocFlavorobjects for example doc flavors using a string (java.lang.String) as the print data representation class.static classClassDocFlavor.URLprovides predefined static constantDocFlavorobjects.Methods in javax.print that return DocFlavorModifier and TypeMethodDescriptionDoc.getDocFlavor()Determines the doc flavor in which this doc object will supply its piece of print data.SimpleDoc.getDocFlavor()Determines the doc flavor in which this doc object will supply its piece of print data.PrintService.getSupportedDocFlavors()Determines the print data formats a client can specify when setting up a job for thisPrintService.abstract DocFlavor[]StreamPrintServiceFactory.getSupportedDocFlavors()Queries the factory for the document flavors that can be accepted by printers obtained from this factory.FlavorException.getUnsupportedFlavors()Returns the unsupported flavors.Methods in javax.print with parameters of type DocFlavorModifier and TypeMethodDescriptionabstract MultiDocPrintService[]PrintServiceLookup.getMultiDocPrintServices(DocFlavor[] flavors, AttributeSet attributes) Not called directly by applications.abstract PrintService[]PrintServiceLookup.getPrintServices(DocFlavor flavor, AttributeSet attributes) Locates services that can be positively confirmed to support the combination of attributes andDocFlavorsspecified.PrintService.getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes) Determines the printing attribute values a client can specify in the given category when setting up a job for this print service.PrintService.getUnsupportedAttributes(DocFlavor flavor, AttributeSet attributes) Identifies the attributes that are unsupported for a print request in the context of a particularDocFlavor.booleanPrintService.isAttributeValueSupported(Attribute attrval, DocFlavor flavor, AttributeSet attributes) Determines whether a client can specify the given printing attribute value when setting up a job for this Print Service.booleanPrintService.isDocFlavorSupported(DocFlavor flavor) Determines if this print service supports a specificDocFlavor.static final MultiDocPrintService[]PrintServiceLookup.lookupMultiDocPrintServices(DocFlavor[] flavors, AttributeSet attributes) LocatesMultiDocprintServicescapable of printingMultiDocscontaining all the specified doc flavors.static final PrintService[]PrintServiceLookup.lookupPrintServices(DocFlavor flavor, AttributeSet attributes) Locates print services capable of printing the specifiedDocFlavor.static StreamPrintServiceFactory[]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 byoutputMimeType.static PrintServiceServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes) Presents a dialog to the user for selecting a print service (printer).Constructors in javax.print with parameters of type DocFlavorModifierConstructorDescriptionSimpleDoc(Object printData, DocFlavor flavor, DocAttributeSet attributes) Constructs aSimpleDocwith the specified print data, doc flavor and doc attribute set.