public static class DocFlavor.STRING extends DocFlavor
java.lang.String
)作为打印数据表示的类。因此,该字符集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
与MIME类型=
"text/html; charset=utf-16" DOC的味道,打印数据表示的类名称=
"java.lang.String" 。
|
static DocFlavor.STRING |
TEXT_PLAIN
与MIME类型=
"text/plain; charset=utf-16" DOC的味道,打印数据表示的类名称=
"java.lang.String" 。
|
hostEncoding
Constructor and Description |
---|
STRING(String mimeType)
构建了一种新的DOC风味与给定的MIME类型和打印数据表示类的名字
"java.lang.String" 。
|
equals, getMediaSubtype, getMediaType, getMimeType, getParameter, getRepresentationClassName, hashCode, toString
public static final DocFlavor.STRING TEXT_PLAIN
"text/plain; charset=utf-16"
DOC的味道,打印数据表示的类名称=
"java.lang.String"
。
public static final DocFlavor.STRING TEXT_HTML
"text/html; charset=utf-16"
DOC的味道,打印数据表示的类名称=
"java.lang.String"
。
public STRING(String mimeType)
"java.lang.String"
。
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.