javax.print
public static class DocFlavor.READER extends DocFlavor
DocFlavor
objects for document
types which use an Reader to retrieve the print data.
All the defined doc flavors have a print data representation classname of "java.io.Reader".
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
Reader doc flavor with a MIME Type of "text/html; charset=utf-16".
|
static DocFlavor.READER |
TEXT_PLAIN
Reader doc flavor with a MIME Type of "text/plain; charset=utf-16".
|
hostEncoding
Constructor and Description |
---|
DocFlavor.READER(String mimeType)
Constructor for doc flavor objects with the given MIME type
and a print data representation class name of "java.io.Reader".
|
equals, getMediaSubtype, getMediaType, getMimeType, getParameter, getRepresentationClassName, hashCode, toString
public static final DocFlavor.READER TEXT_HTML
public static final DocFlavor.READER TEXT_PLAIN
public DocFlavor.READER(String mimeType)
mimeType
- the mime type stringNullPointerException
- if mimeType is null
.IllegalArgumentException
- if mimeType has the wrong syntax.