public static class DocFlavor.STRING extends DocFlavor
java.lang.String )作为打印数据表示类的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.STRING |
TEXT_HTML
Doc风格为MIME类型=
"text/html; charset=utf-16" ,打印数据表示类名=
"java.lang.String" 。
|
static DocFlavor.STRING |
TEXT_PLAIN
Doc风格的MIME类型=
"text/plain; charset=utf-16" ,打印数据表示类名=
"java.lang.String" 。
|
hostEncoding| Constructor and Description |
|---|
STRING(String mimeType)
构造一个新DocFlavor给定MIME类型和打印数据表示形式类名
"java.lang.String" 。
|
equals, getMediaSubtype, getMediaType, getMimeType, getParameter, getRepresentationClassName, hashCode, toStringpublic static final DocFlavor.STRING TEXT_PLAIN
"text/plain; charset=utf-16" ,打印数据表示类名=
"java.lang.String" 。
public static final DocFlavor.STRING TEXT_HTML
"text/html; charset=utf-16" ,打印数据表示类名=
"java.lang.String" 。
public STRING(String mimeType)
"java.lang.String" 。
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.