public static class DocFlavor.READER extends DocFlavor
java.io.Reader
)作为打印数据表示类的doc风格。
因此,字符集是Unicode。
DocFlavor.BYTE_ARRAY, DocFlavor.CHAR_ARRAY, DocFlavor.INPUT_STREAM, DocFlavor.READER, DocFlavor.SERVICE_FORMATTED, DocFlavor.STRING, DocFlavor.URL
Modifier and Type | Field and Description |
---|---|
static DocFlavor.READER |
TEXT_HTML
文件风味与MIME类型=
"text/html; charset=utf-16" ,打印数据表示类名=
"java.io.Reader" (字符流)。
|
static DocFlavor.READER |
TEXT_PLAIN
Doc风格为MIME类型=
"text/plain; charset=utf-16" ,打印数据表示类名=
"java.io.Reader" (字符流)。
|
hostEncoding
Constructor and Description |
---|
READER(String mimeType)
构造具有给定MIME类型和打印数据表示类名称为\
"java.io.Reader" (字符流)的新文档风格。
|
equals, getMediaSubtype, getMediaType, getMimeType, getParameter, getRepresentationClassName, hashCode, toString
public static final DocFlavor.READER TEXT_PLAIN
"text/plain; charset=utf-16"
,打印数据表示类名=
"java.io.Reader"
(字符流)。
public static final DocFlavor.READER TEXT_HTML
"text/html; charset=utf-16"
,打印数据表示类名称=
"java.io.Reader"
(字符流)。
public READER(String mimeType)
"java.io.Reader"
(字符流)构造新的doc风格。
mimeType
- MIME媒体类型字符串。
如果是文本媒体类型,则假定它包含一个"charset=utf-16"
参数。
NullPointerException
- (未经检查的异常)如果
mimeType
为空,则抛出。
IllegalArgumentException
- (unchecked exception) Thrown if
mimeType
does not obey the syntax for a MIME media type string.
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.