软件包 | 描述 |
---|---|
javax.print |
提供了主要的类和接口的java
TM打印服务API。
|
Modifier and Type | Class and Description |
---|---|
static class |
DocFlavor.BYTE_ARRAY
类docflavor.byte_array提供预定义的静态常量docflavor对象例如DOC香料使用一个字节数组(
byte[] )作为打印数据表示的类。
|
static class |
DocFlavor.CHAR_ARRAY
类docflavor.char_array提供预定义的静态常量docflavor对象例如DOC香料使用字符数组(
char[] )作为打印数据表示的类。
|
static class |
DocFlavor.INPUT_STREAM
类docflavor.input_stream提供预定义的静态常量docflavor对象例如DOC香料使用的字节流(
java.io.InputStream )作为打印数据表示的类。
|
static class |
DocFlavor.READER
类docflavor.reader提供预定义的静态常量docflavor对象例如DOC香料使用字符流(
java.io.Reader )作为打印数据表示的类。
|
static class |
DocFlavor.SERVICE_FORMATTED
类docflavor.service_formatted提供预定义的静态常量docflavor对象例如DOC口味服务格式化打印数据。
|
static class |
DocFlavor.STRING
类docflavor.string提供预定义的静态常量docflavor对象例如DOC香料使用字符串(
java.lang.String )作为打印数据表示的类。
|
static class |
DocFlavor.URL
类docflavor.url提供预定义的静态常量docflavor对象。
|
Modifier and Type | Method and Description |
---|---|
DocFlavor |
SimpleDoc.getDocFlavor()
确定此文档对象将提供其打印数据的文档的味道。
|
DocFlavor |
Doc.getDocFlavor()
确定此文档对象将提供其打印数据的文档的味道。
|
DocFlavor[] |
PrintService.getSupportedDocFlavors()
确定打印数据格式,客户可以指定当建立这个
PrintService 工作。
|
abstract DocFlavor[] |
StreamPrintServiceFactory.getSupportedDocFlavors()
查询工厂的文档的口味,可以接受由这家工厂获得的打印机。
|
DocFlavor[] |
FlavorException.getUnsupportedFlavors()
返回不支持的口味。
|
Modifier and Type | Method and Description |
---|---|
abstract MultiDocPrintService[] |
PrintServiceLookup.getMultiDocPrintServices(DocFlavor[] flavors, AttributeSet attributes)
不直接调用应用程序。
|
abstract PrintService[] |
PrintServiceLookup.getPrintServices(DocFlavor flavor, AttributeSet attributes)
定位服务,可以积极确认支持的属性的组合和docflavors指定。
|
Object |
PrintService.getSupportedAttributeValues(类<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes)
确定在为该打印服务设置一个作业时,客户端可以在指定类别中指定的打印属性值。
|
AttributeSet |
PrintService.getUnsupportedAttributes(DocFlavor flavor, AttributeSet attributes)
确定了在特定的语境docflavor打印请求是不支持的属性。
|
boolean |
PrintService.isAttributeValueSupported(Attribute attrval, DocFlavor flavor, AttributeSet attributes)
确定在设置此打印服务的作业时,客户端是否可以指定给定的打印属性值。
|
boolean |
PrintService.isDocFlavorSupported(DocFlavor flavor)
确定这是否打印服务支持一个特定的
DocFlavor 。
|
static MultiDocPrintService[] |
PrintServiceLookup.lookupMultiDocPrintServices(DocFlavor[] flavors, AttributeSet attributes)
位于多文档打印服务能够打印multidocs包含所有指定的文件的味道。
|
static PrintService[] |
PrintServiceLookup.lookupPrintServices(DocFlavor flavor, AttributeSet attributes)
位于打印服务可以打印指定的
DocFlavor 。
|
static StreamPrintServiceFactory[] |
StreamPrintServiceFactory.lookupStreamPrintServiceFactories(DocFlavor flavor, String outputMimeType)
位于工厂的打印服务,可以用一个打印作业输出流中指定的
outputMimeType 格式数据。
|
static PrintService |
ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
向用户提供一个对话框,用于选择打印服务(打印机)。
|
Constructor and Description |
---|
SimpleDoc(Object printData, DocFlavor flavor, DocAttributeSet attributes)
构建一个与指定的打印数据
SimpleDoc ,DOC的风味和文件属性设置。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.