public static class DocFlavor.CHAR_ARRAY extends DocFlavor
char[]
)作为打印数据表示类的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.CHAR_ARRAY |
TEXT_HTML
具有MIME类型的Doc风格=
"text/html; charset=utf-16" ,打印数据表示类名称=
"[C" (字符数组)。
|
static DocFlavor.CHAR_ARRAY |
TEXT_PLAIN
Doc风格的MIME类型=
"text/plain; charset=utf-16" ,打印数据表示类名=
"[C" (字符数组)。
|
hostEncoding
Constructor and Description |
---|
CHAR_ARRAY(String mimeType)
使用给定的MIME类型和打印数据表示类别名称
"[C" (字符数组)构造新的doc风格。
|
equals, getMediaSubtype, getMediaType, getMimeType, getParameter, getRepresentationClassName, hashCode, toString
public static final DocFlavor.CHAR_ARRAY TEXT_PLAIN
"text/plain; charset=utf-16"
,打印数据表示类名=
"[C"
(字符数组)。
public static final DocFlavor.CHAR_ARRAY TEXT_HTML
"text/html; charset=utf-16"
,打印数据表示类名=
"[C"
(字符数组)。
public CHAR_ARRAY(String mimeType)
"[C"
(字符数组)的新文档风格。
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.