javax.print
Class DocFlavor.READER

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.print.DocFlavor sample code for javax.print.DocFlavor definition code for javax.print.DocFlavor 
      extended by javax.print.DocFlavor.READER
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable
Enclosing class:
DocFlavor sample code for javax.print.DocFlavor definition code for javax.print.DocFlavor

public static class DocFlavor.READER
extends DocFlavor sample code for javax.print.DocFlavor definition code for javax.print.DocFlavor

Class DocFlavor.READER provides predefined static constant DocFlavor objects for example doc flavors using a character stream (java.io.Reader sample code for java.io.Reader definition code for java.io.Reader ) as the print data representation class. As such, the character set is Unicode.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.print.DocFlavor sample code for javax.print.DocFlavor definition code for javax.print.DocFlavor
DocFlavor.BYTE_ARRAY sample code for javax.print.DocFlavor.BYTE_ARRAY definition code for javax.print.DocFlavor.BYTE_ARRAY , DocFlavor.CHAR_ARRAY sample code for javax.print.DocFlavor.CHAR_ARRAY definition code for javax.print.DocFlavor.CHAR_ARRAY , DocFlavor.INPUT_STREAM sample code for javax.print.DocFlavor.INPUT_STREAM definition code for javax.print.DocFlavor.INPUT_STREAM , DocFlavor.READER sample code for javax.print.DocFlavor.READER definition code for javax.print.DocFlavor.READER , DocFlavor.SERVICE_FORMATTED sample code for javax.print.DocFlavor.SERVICE_FORMATTED definition code for javax.print.DocFlavor.SERVICE_FORMATTED , DocFlavor.STRING sample code for javax.print.DocFlavor.STRING definition code for javax.print.DocFlavor.STRING , DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL
 
Field Summary
static DocFlavor.READER sample code for javax.print.DocFlavor.READER definition code for javax.print.DocFlavor.READER TEXT_HTML sample code for javax.print.DocFlavor.READER.TEXT_HTML definition code for javax.print.DocFlavor.READER.TEXT_HTML
          Doc flavor with MIME type = "text/html; charset=utf-16", print data representation class name = "java.io.Reader" (character stream).
static DocFlavor.READER sample code for javax.print.DocFlavor.READER definition code for javax.print.DocFlavor.READER TEXT_PLAIN sample code for javax.print.DocFlavor.READER.TEXT_PLAIN definition code for javax.print.DocFlavor.READER.TEXT_PLAIN
          Doc flavor with MIME type = "text/plain; charset=utf-16", print data representation class name = "java.io.Reader" (character stream).
 
Fields inherited from class javax.print.DocFlavor sample code for javax.print.DocFlavor definition code for javax.print.DocFlavor
hostEncoding sample code for javax.print.DocFlavor.hostEncoding definition code for javax.print.DocFlavor.hostEncoding
 
Constructor Summary
DocFlavor.READER sample code for javax.print.DocFlavor.READER.DocFlavor.READER(java.lang.String) definition code for javax.print.DocFlavor.READER.DocFlavor.READER(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  mimeType)
          Constructs a new doc flavor with the given MIME type and a print data representation class name of\ "java.io.Reader" (character stream).
 
Method Summary
 
Methods inherited from class javax.print.DocFlavor sample code for javax.print.DocFlavor definition code for javax.print.DocFlavor
equals sample code for javax.print.DocFlavor.equals(java.lang.Object) definition code for javax.print.DocFlavor.equals(java.lang.Object) , getMediaSubtype sample code for javax.print.DocFlavor.getMediaSubtype() definition code for javax.print.DocFlavor.getMediaSubtype() , getMediaType sample code for javax.print.DocFlavor.getMediaType() definition code for javax.print.DocFlavor.getMediaType() , getMimeType sample code for javax.print.DocFlavor.getMimeType() definition code for javax.print.DocFlavor.getMimeType() , getParameter sample code for javax.print.DocFlavor.getParameter(java.lang.String) definition code for javax.print.DocFlavor.getParameter(java.lang.String) , getRepresentationClassName sample code for javax.print.DocFlavor.getRepresentationClassName() definition code for javax.print.DocFlavor.getRepresentationClassName() , hashCode sample code for javax.print.DocFlavor.hashCode() definition code for javax.print.DocFlavor.hashCode() , toString sample code for javax.print.DocFlavor.toString() definition code for javax.print.DocFlavor.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

TEXT_PLAIN sample code for javax.print.DocFlavor.READER.TEXT_PLAIN

public static final DocFlavor.READER sample code for javax.print.DocFlavor.READER definition code for javax.print.DocFlavor.READER  TEXT_PLAIN
Doc flavor with MIME type = "text/plain; charset=utf-16", print data representation class name = "java.io.Reader" (character stream).


TEXT_HTML sample code for javax.print.DocFlavor.READER.TEXT_HTML

public static final DocFlavor.READER sample code for javax.print.DocFlavor.READER definition code for javax.print.DocFlavor.READER  TEXT_HTML
Doc flavor with MIME type = "text/html; charset=utf-16", print data representation class name = "java.io.Reader" (character stream).

Constructor Detail

DocFlavor.READER sample code for javax.print.DocFlavor.READER(java.lang.String) definition code for javax.print.DocFlavor.READER(java.lang.String)

public DocFlavor.READER(String sample code for java.lang.String definition code for java.lang.String  mimeType)
Constructs a new doc flavor with the given MIME type and a print data representation class name of\ "java.io.Reader" (character stream).

Parameters:
mimeType - MIME media type string. If it is a text media type, it is assumed to contain a "charset=utf-16" parameter.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - (unchecked exception) Thrown if mimeType is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - (unchecked exception) Thrown if mimeType does not obey the syntax for a MIME media type string.