public static class DocFlavor.CHAR_ARRAY extends DocFlavor
char[])作为打印数据表示的类。因此,该字符集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类型=
"text/html; charset=utf-16" DOC的味道,打印数据表示的类名称=
"[C"(字符数组)。
|
static DocFlavor.CHAR_ARRAY |
TEXT_PLAIN
与MIME类型=
"text/plain; charset=utf-16" DOC的味道,打印数据表示的类名称=
"[C"(字符数组)。
|
hostEncoding| Constructor and Description |
|---|
CHAR_ARRAY(String mimeType)
构建了一种新的DOC风味与给定的MIME类型和打印数据表示类的名字
"[C"(字符数组)。
|
equals, getMediaSubtype, getMediaType, getMimeType, getParameter, getRepresentationClassName, hashCode, toStringpublic static final DocFlavor.CHAR_ARRAY TEXT_PLAIN
"text/plain; charset=utf-16" DOC的味道,打印数据表示的类名称=
"[C"(字符数组)。
public static final DocFlavor.CHAR_ARRAY TEXT_HTML
"text/html; charset=utf-16" DOC的味道,打印数据表示的类名称=
"[C"(字符数组)。
public CHAR_ARRAY(String mimeType)
"[C"(字符数组)。
mimeType - MIME媒体类型字符串。如果它是一个文本的媒体类型,假定它包含
"charset=utf-16"参数。
NullPointerException -(unchecked异常)如果
mimeType空抛。
IllegalArgumentException -(unchecked例外)如果
mimeType不遵守语法一个MIME媒体类型字符串抛出。
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.