javax.print
Class DocFlavor.CHAR_ARRAY

java.lang.Object
  extended by javax.print.DocFlavor
      extended by javax.print.DocFlavor.CHAR_ARRAY
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
DocFlavor

public static class DocFlavor.CHAR_ARRAY
extends DocFlavor

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

All the defined doc flavors have a print data representation classname of "[C" (char array).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.print.DocFlavor
DocFlavor.BYTE_ARRAY, DocFlavor.CHAR_ARRAY, DocFlavor.INPUT_STREAM, DocFlavor.READER, DocFlavor.SERVICE_FORMATTED, DocFlavor.STRING, DocFlavor.URL
 
Field Summary
static DocFlavor.CHAR_ARRAY TEXT_HTML
          Char array doc flavor with a MIME Type of "text/html; charset=utf-16".
static DocFlavor.CHAR_ARRAY TEXT_PLAIN
          Char array doc flavor with a MIME Type of "text/plain; charset=utf-16".
 
Fields inherited from class javax.print.DocFlavor
hostEncoding
 
Constructor Summary
DocFlavor.CHAR_ARRAY(String mimeType)
          Constructor for doc flavor objects with the given MIME type and a print data representation class name of "[C".
 
Method Summary
 
Methods inherited from class javax.print.DocFlavor
equals, getMediaSubtype, getMediaType, getMimeType, getParameter, getRepresentationClassName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXT_HTML

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


TEXT_PLAIN

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

Constructor Detail

DocFlavor.CHAR_ARRAY

public DocFlavor.CHAR_ARRAY(String mimeType)
Constructor for doc flavor objects with the given MIME type and a print data representation class name of "[C".

Parameters:
mimeType - the mime type string
Throws:
NullPointerException - if mimeType is null.
IllegalArgumentException - if mimeType has the wrong syntax.