API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.print. DocFlavor View Source
Author(s)
Alan Kaminsky
Since
Version
Serial
Hierarchy
 Object
      DocFlavor
Implements
 Serializable
 Cloneable
Subclasses
Description
public class DocFlavor
  Class DocFlavor encapsulates an object that specifies the format in which print data is supplied to a DocPrintJob.
See also:   
Constructors
public DocFlavor (String mimeType, String className)
  Constructs a new doc flavor object from the given MIME type and representation class name.
Methods
Hide/Show inherited methods
public boolean equals (Object obj)
  Determines if this doc flavor object is equal to the given object.
public String getMediaSubtype ()
  Returns this doc flavor object's media subtype (from the MIME type).
public String getMediaType ()
  Returns this doc flavor object's media type (from the MIME type).
public String getMimeType ()
  Returns this doc flavor object's MIME type string based on the canonical form.
public String getParameter (String paramName)
  Returns a String representing a MIME parameter.
public String getRepresentationClassName ()
  Returns the name of this doc flavor object's representation class.
public int hashCode ()
Returns a hash code for this doc flavor object.
public String toString ()
  Converts this DocFlavor to a string.
Fields
Hide/Show inherited fields
publicfinalstatic String hostEncoding
  A String representing the host operating system encoding.
Nested Classes
  DocFlavor.BYTE_ARRAY
Class DocFlavor.BYTE_ARRAY provides predefined static constant DocFlavor objects for example doc flavors using a byte array (byte[]) as the print data representation class.
  DocFlavor.INPUT_STREAM
Class DocFlavor.INPUT_STREAM provides predefined static constant DocFlavor objects for example doc flavors using a byte stream (java.io.InputStream) as the print data representation class.
  DocFlavor.URL
Class DocFlavor.URL provides predefined static constant DocFlavor objects.
  DocFlavor.CHAR_ARRAY
Class DocFlavor.CHAR_ARRAY provides predefined static constant DocFlavor objects for example doc flavors using a character array (char[]) as the print data representation class.
  DocFlavor.STRING
Class DocFlavor.STRING provides predefined static constant DocFlavor objects for example doc flavors using a string (java.lang.String) as the print data representation class.
  DocFlavor.READER
Class DocFlavor.READER provides predefined static constant DocFlavor objects for example doc flavors using a character stream (java.io.Reader) as the print data representation class.
  DocFlavor.SERVICE_FORMATTED
Class DocFlavor.SERVICE_FORMATTED provides predefined static constant DocFlavor objects for example doc flavors for service formatted print data.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar