javax.print
Class DocFlavor.URL

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.URL
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.URL
extends DocFlavor sample code for javax.print.DocFlavor definition code for javax.print.DocFlavor

Class DocFlavor.URL provides predefined static constant DocFlavor objects. For example doc flavors using a Uniform Resource Locator (java.net.URL sample code for java.net.URL definition code for java.net.URL ) as the print data representation class.

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.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL AUTOSENSE sample code for javax.print.DocFlavor.URL.AUTOSENSE definition code for javax.print.DocFlavor.URL.AUTOSENSE
          Doc flavor with MIME type = "application/octet-stream", print data representation class name = "java.net.URL".
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL GIF sample code for javax.print.DocFlavor.URL.GIF definition code for javax.print.DocFlavor.URL.GIF
          Doc flavor with MIME type = "image/gif", print data representation class name = "java.net.URL".
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL JPEG sample code for javax.print.DocFlavor.URL.JPEG definition code for javax.print.DocFlavor.URL.JPEG
          Doc flavor with MIME type = "image/jpeg", print data representation class name = "java.net.URL".
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL PCL sample code for javax.print.DocFlavor.URL.PCL definition code for javax.print.DocFlavor.URL.PCL
          Doc flavor with MIME type = "application/vnd.hp-PCL", print data representation class name = "java.net.URL".
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL PDF sample code for javax.print.DocFlavor.URL.PDF definition code for javax.print.DocFlavor.URL.PDF
          Doc flavor with MIME type = "application/pdf", print data representation class name = "java.net.URL".
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL PNG sample code for javax.print.DocFlavor.URL.PNG definition code for javax.print.DocFlavor.URL.PNG
          Doc flavor with MIME type = "image/png", print data representation class name = "java.net.URL".
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL POSTSCRIPT sample code for javax.print.DocFlavor.URL.POSTSCRIPT definition code for javax.print.DocFlavor.URL.POSTSCRIPT
          Doc flavor with MIME type = "application/postscript", print data representation class name = "java.net.URL".
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_HTML_HOST sample code for javax.print.DocFlavor.URL.TEXT_HTML_HOST definition code for javax.print.DocFlavor.URL.TEXT_HTML_HOST
          Doc flavor with MIME type = "text/html", encoded in the host platform encoding.
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_HTML_US_ASCII sample code for javax.print.DocFlavor.URL.TEXT_HTML_US_ASCII definition code for javax.print.DocFlavor.URL.TEXT_HTML_US_ASCII
          Doc flavor with MIME type = "text/html; charset=us-ascii", print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_HTML_UTF_16 sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16 definition code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16
          Doc flavor with MIME type = "text/html; charset=utf-16", print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_HTML_UTF_16BE sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16BE definition code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16BE
          Doc flavor with MIME type = "text/html; charset=utf-16be" (big-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_HTML_UTF_16LE sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16LE definition code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16LE
          Doc flavor with MIME type = "text/html; charset=utf-16le" (little-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_HTML_UTF_8 sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_8 definition code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_8
          Doc flavor with MIME type = "text/html; charset=utf-8", print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_PLAIN_HOST sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_HOST definition code for javax.print.DocFlavor.URL.TEXT_PLAIN_HOST
          Doc flavor with MIME type = "text/plain", encoded in the host platform encoding.
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_PLAIN_US_ASCII sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_US_ASCII definition code for javax.print.DocFlavor.URL.TEXT_PLAIN_US_ASCII
          Doc flavor with MIME type = "text/plain; charset=us-ascii", print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_PLAIN_UTF_16 sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16 definition code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16
          Doc flavor with MIME type = "text/plain; charset=utf-16", print data representation class name = java.net.URL"" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_PLAIN_UTF_16BE sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16BE definition code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16BE
          Doc flavor with MIME type = "text/plain; charset=utf-16be" (big-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_PLAIN_UTF_16LE sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16LE definition code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16LE
          Doc flavor with MIME type = "text/plain; charset=utf-16le" (little-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).
static DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL TEXT_PLAIN_UTF_8 sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_8 definition code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_8
          Doc flavor with MIME type = "text/plain; charset=utf-8", print data representation class name = "java.net.URL" (byte 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.URL sample code for javax.print.DocFlavor.URL.DocFlavor.URL(java.lang.String) definition code for javax.print.DocFlavor.URL.DocFlavor.URL(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.net.URL".
 
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_HOST sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_HOST

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_PLAIN_HOST
Doc flavor with MIME type = "text/plain", encoded in the host platform encoding. See hostEncoding sample code for javax.print.DocFlavor.hostEncoding definition code for javax.print.DocFlavor.hostEncoding Print data representation class name = "java.net.URL" (byte stream).


TEXT_PLAIN_UTF_8 sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_8

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_PLAIN_UTF_8
Doc flavor with MIME type = "text/plain; charset=utf-8", print data representation class name = "java.net.URL" (byte stream).


TEXT_PLAIN_UTF_16 sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_PLAIN_UTF_16
Doc flavor with MIME type = "text/plain; charset=utf-16", print data representation class name = java.net.URL"" (byte stream).


TEXT_PLAIN_UTF_16BE sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16BE

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_PLAIN_UTF_16BE
Doc flavor with MIME type = "text/plain; charset=utf-16be" (big-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).


TEXT_PLAIN_UTF_16LE sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_UTF_16LE

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_PLAIN_UTF_16LE
Doc flavor with MIME type = "text/plain; charset=utf-16le" (little-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).


TEXT_PLAIN_US_ASCII sample code for javax.print.DocFlavor.URL.TEXT_PLAIN_US_ASCII

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_PLAIN_US_ASCII
Doc flavor with MIME type = "text/plain; charset=us-ascii", print data representation class name = "java.net.URL" (byte stream).


TEXT_HTML_HOST sample code for javax.print.DocFlavor.URL.TEXT_HTML_HOST

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_HTML_HOST
Doc flavor with MIME type = "text/html", encoded in the host platform encoding. See hostEncoding sample code for javax.print.DocFlavor.hostEncoding definition code for javax.print.DocFlavor.hostEncoding Print data representation class name = "java.net.URL" (byte stream).


TEXT_HTML_UTF_8 sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_8

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_HTML_UTF_8
Doc flavor with MIME type = "text/html; charset=utf-8", print data representation class name = "java.net.URL" (byte stream).


TEXT_HTML_UTF_16 sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_HTML_UTF_16
Doc flavor with MIME type = "text/html; charset=utf-16", print data representation class name = "java.net.URL" (byte stream).


TEXT_HTML_UTF_16BE sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16BE

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_HTML_UTF_16BE
Doc flavor with MIME type = "text/html; charset=utf-16be" (big-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).


TEXT_HTML_UTF_16LE sample code for javax.print.DocFlavor.URL.TEXT_HTML_UTF_16LE

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_HTML_UTF_16LE
Doc flavor with MIME type = "text/html; charset=utf-16le" (little-endian byte ordering), print data representation class name = "java.net.URL" (byte stream).


TEXT_HTML_US_ASCII sample code for javax.print.DocFlavor.URL.TEXT_HTML_US_ASCII

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  TEXT_HTML_US_ASCII
Doc flavor with MIME type = "text/html; charset=us-ascii", print data representation class name = "java.net.URL" (byte stream).


PDF sample code for javax.print.DocFlavor.URL.PDF

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  PDF
Doc flavor with MIME type = "application/pdf", print data representation class name = "java.net.URL".


POSTSCRIPT sample code for javax.print.DocFlavor.URL.POSTSCRIPT

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  POSTSCRIPT
Doc flavor with MIME type = "application/postscript", print data representation class name = "java.net.URL".


PCL sample code for javax.print.DocFlavor.URL.PCL

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  PCL
Doc flavor with MIME type = "application/vnd.hp-PCL", print data representation class name = "java.net.URL".


GIF sample code for javax.print.DocFlavor.URL.GIF

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  GIF
Doc flavor with MIME type = "image/gif", print data representation class name = "java.net.URL".


JPEG sample code for javax.print.DocFlavor.URL.JPEG

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  JPEG
Doc flavor with MIME type = "image/jpeg", print data representation class name = "java.net.URL".


PNG sample code for javax.print.DocFlavor.URL.PNG

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  PNG
Doc flavor with MIME type = "image/png", print data representation class name = "java.net.URL".


AUTOSENSE sample code for javax.print.DocFlavor.URL.AUTOSENSE

public static final DocFlavor.URL sample code for javax.print.DocFlavor.URL definition code for javax.print.DocFlavor.URL  AUTOSENSE
Doc flavor with MIME type = "application/octet-stream", print data representation class name = "java.net.URL". The client must determine that data described using this DocFlavor is valid for the printer.

Constructor Detail

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

public DocFlavor.URL(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.net.URL".

Parameters:
mimeType - MIME media type string.
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.