javax.print

Class DocFlavor.STRING

public static class DocFlavor.STRING extends DocFlavor

Predefined static DocFlavor objects for document types which use a String for the print data representation.

All the defined doc flavors have a print data representation classname of "java.lang.String".

Field Summary
static DocFlavor.STRINGTEXT_HTML
String doc flavor with a MIME Type of "text/html; charset=utf-16".
static DocFlavor.STRINGTEXT_PLAIN
String doc flavor with a MIME Type of "text/plain; charset=utf-16".
Constructor Summary
STRING(String mimeType)
Constructor for doc flavor objects with the given MIME type and a print data representation class name of "java.lang.String".

Field Detail

TEXT_HTML

public static final DocFlavor.STRING TEXT_HTML
String doc flavor with a MIME Type of "text/html; charset=utf-16".

TEXT_PLAIN

public static final DocFlavor.STRING TEXT_PLAIN
String doc flavor with a MIME Type of "text/plain; charset=utf-16".

Constructor Detail

STRING

public STRING(String mimeType)
Constructor for doc flavor objects with the given MIME type and a print data representation class name of "java.lang.String".

Parameters: mimeType the mime type string

Throws: NullPointerException if mimeType is null. IllegalArgumentException if mimeType has the wrong syntax.