Uses of Class javax.print.DocFlavor.URL (Java Platform SE 8 )
Date: 2026-03-29

## Uses of Class
javax.print.DocFlavor.URL

- Packages that use DocFlavor.URL
  Package | Description
  --- | ---
  javax.print | Provides the principal classes and interfaces for the JavaTM Print Service API.

- - ### Uses of DocFlavor.URL in javax.print

    Fields in javax.print declared as DocFlavor.URL
    Modifier and Type | Field and Description
    --- | ---
    `static DocFlavor.URL` | DocFlavor.URL.`AUTOSENSE` Doc flavor with MIME type = `"application/octet-stream"`, print data representation class name = `"java.net.URL"`.
    `static DocFlavor.URL` | DocFlavor.URL.`GIF` Doc flavor with MIME type = `"image/gif"`, print data representation class name = `"java.net.URL"`.
    `static DocFlavor.URL` | DocFlavor.URL.`JPEG` Doc flavor with MIME type = `"image/jpeg"`, print data representation class name = `"java.net.URL"`.
    `static DocFlavor.URL` | DocFlavor.URL.`PCL` Doc flavor with MIME type = `"application/vnd.hp-PCL"`, print data representation class name = `"java.net.URL"`.
    `static DocFlavor.URL` | DocFlavor.URL.`PDF` Doc flavor with MIME type = `"application/pdf"`, print data representation class name = `"java.net.URL"`.
    `static DocFlavor.URL` | DocFlavor.URL.`PNG` Doc flavor with MIME type = `"image/png"`, print data representation class name = `"java.net.URL"`.
    `static DocFlavor.URL` | DocFlavor.URL.`POSTSCRIPT` Doc flavor with MIME type = `"application/postscript"`, print data representation class name = `"java.net.URL"`.
    `static DocFlavor.URL` | DocFlavor.URL.`TEXT_HTML_HOST` Doc flavor with MIME type = `"text/html"`, encoded in the host platform encoding.
    `static DocFlavor.URL` | 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` | 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` | 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` | 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` | 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` | DocFlavor.URL.`TEXT_PLAIN_HOST` Doc flavor with MIME type = `"text/plain"`, encoded in the host platform encoding.
    `static DocFlavor.URL` | 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` | 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` | 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` | 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` | 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).

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.