docflavor.java

来自「linux下建立JAVA虚拟机的源码KAFFE」· Java 代码 · 共 916 行 · 第 1/3 页

JAVA
916
字号
    public static final INPUT_STREAM PCL = new INPUT_STREAM("application/vnd.hp-PCL");    /**     * InputStream doc flavor with a MIME Type of "application/pdf".     */    public static final INPUT_STREAM PDF = new INPUT_STREAM("application/pdf");    /**     * InputStream doc flavor with a MIME Type of "image/png".     */    public static final INPUT_STREAM PNG = new INPUT_STREAM("image/png");    /**     * InputStream doc flavor with a MIME Type of "application/postscript".     */    public static final INPUT_STREAM POSTSCRIPT = new INPUT_STREAM("application/postscript");    /**     * InputStream doc flavor with a MIME Type of "text/html" in the host encoding.     */    public static final INPUT_STREAM TEXT_HTML_HOST = new INPUT_STREAM("text/html; charset=" + hostEncoding);    /**     * InputStream doc flavor with a MIME Type of "text/html; charset=us-ascii".     */    public static final INPUT_STREAM TEXT_HTML_US_ASCII = new INPUT_STREAM("text/html; charset=us-ascii");    /**     * InputStream doc flavor with a MIME Type of "text/html; charset=utf-16".     */    public static final INPUT_STREAM TEXT_HTML_UTF_16 = new INPUT_STREAM("text/html; charset=utf-16");    /**     * InputStream doc flavor with a MIME Type of "text/html; charset=utf-16be".     */    public static final INPUT_STREAM TEXT_HTML_UTF_16BE = new INPUT_STREAM("text/html; charset=utf-16be");    /**     * InputStream doc flavor with a MIME Type of "text/html; charset=utf-16le".     */    public static final INPUT_STREAM TEXT_HTML_UTF_16LE = new INPUT_STREAM("text/html; charset=utf-16le");    /**     * InputStream doc flavor with a MIME Type of "text/html; charset=utf-8".     */    public static final INPUT_STREAM TEXT_HTML_UTF_8 = new INPUT_STREAM("text/html; charset=utf-8");    /**     * InputStream doc flavor with a MIME Type of "text/plain" in the host encoding.     */    public static final INPUT_STREAM TEXT_PLAIN_HOST = new INPUT_STREAM("text/plain; charset=" + hostEncoding);    /**     * InputStream doc flavor with a MIME Type of "text/plain; charset=us-ascii".     */    public static final INPUT_STREAM TEXT_PLAIN_US_ASCII = new INPUT_STREAM("text/plain; charset=us-ascii");    /**     * InputStream doc flavor with a MIME Type of "text/plain; charset=utf-16".     */    public static final INPUT_STREAM TEXT_PLAIN_UTF_16 = new INPUT_STREAM("text/plain; charset=utf-16");    /**     * InputStream doc flavor with a MIME Type of "text/plain; charset=utf-16be".     */    public static final INPUT_STREAM TEXT_PLAIN_UTF_16BE = new INPUT_STREAM("text/plain; charset=utf-16be");    /**     * InputStream doc flavor with a MIME Type of "text/plain; charset=utf-16le".     */    public static final INPUT_STREAM TEXT_PLAIN_UTF_16LE = new INPUT_STREAM("text/plain; charset=utf-16le");    /**     * InputStream doc flavor with a MIME Type of "text/plain; charset=utf-8".     */    public static final INPUT_STREAM TEXT_PLAIN_UTF_8 = new INPUT_STREAM("text/plain; charset=utf-8");        /**     * Constructor for doc flavor objects with the given MIME type      * and a print data representation class name of "java.io.InputStream".     *      * @param mimeType the mime type string     *      * @throws NullPointerException if mimeType is <code>null</code>.     * @throws IllegalArgumentException if mimeType has the wrong syntax.     */    public INPUT_STREAM(String mimeType)    {      super(mimeType, "java.io.InputStream");    }  }    /**   * Predefined static <code>DocFlavor</code> objects for document   * types which use an Reader to retrieve the print data.   * <p>All the defined doc flavors have a print data representation    * classname of "java.io.Reader".</p>   *    * @author Michael Koch (konqueror@gmx.de)   */  public static class READER    extends DocFlavor  {    private static final long serialVersionUID = 7100295812579351567L;    /**     * Reader doc flavor with a MIME Type of "text/html; charset=utf-16".     */    public static final DocFlavor.READER TEXT_HTML = new READER("text/html; charset=utf-16");    /**     * Reader doc flavor with a MIME Type of "text/plain; charset=utf-16".     */    public static final DocFlavor.READER TEXT_PLAIN = new READER("text/plain; charset=utf-16");        /**     * Constructor for doc flavor objects with the given MIME type      * and a print data representation class name of "java.io.Reader".     *      * @param mimeType the mime type string     *      * @throws NullPointerException if mimeType is <code>null</code>.     * @throws IllegalArgumentException if mimeType has the wrong syntax.     */    public READER(String mimeType)    {      super(mimeType, "java.io.Reader");    }  }    /**   * Predefined static <code>DocFlavor</code> objects for document   * types which use service formatted print data.   * <p>All the defined doc flavors have a MIME type of    * "application/x-java-jvm-local-objectref".</p>   *    * @author Michael Koch (konqueror@gmx.de)   */  public static class SERVICE_FORMATTED    extends DocFlavor  {    private static final long serialVersionUID = 6181337766266637256L;    /**     * Service formatted doc flavor with a representation class of      * "java.awt.print.Pageable".     */    public static final DocFlavor.SERVICE_FORMATTED PAGEABLE = new SERVICE_FORMATTED("java.awt.print.Pageable");    /**     * Service formatted doc flavor with a representation class of      * "java.awt.print.Printable".     */    public static final DocFlavor.SERVICE_FORMATTED PRINTABLE = new SERVICE_FORMATTED("java.awt.print.Printable");    /**     * Service formatted doc flavor with a representation class of      * "java.awt.image.renderable.RenderableImage".     */    public static final DocFlavor.SERVICE_FORMATTED RENDERABLE_IMAGE = new SERVICE_FORMATTED("java.awt.image.renderable.RenderableImage");        /**     * Constructor for doc flavor objects with a MIME type of      * "application/x-java-jvm-local-objectref" and the given     * print data representation classname.     *      * @param className the representation classname     *      * @throws NullPointerException if className is <code>null</code>.     */    public SERVICE_FORMATTED(String className)    {      super("application/x-java-jvm-local-objectref", className);    }  }    /**   * Predefined static <code>DocFlavor</code> objects for document   * types which use a String for the print data representation.   * <p>All the defined doc flavors have a print data representation    * classname of "java.lang.String".</p>   *    * @author Michael Koch (konqueror@gmx.de)   */  public static class STRING    extends DocFlavor  {    private static final long serialVersionUID = 4414407504887034035L;    /**     * String doc flavor with a MIME Type of "text/html; charset=utf-16".     */    public static final DocFlavor.STRING TEXT_HTML = new STRING("text/html; charset=utf-16");    /**     * String doc flavor with a MIME Type of "text/plain; charset=utf-16".     */    public static final DocFlavor.STRING TEXT_PLAIN = new STRING("text/plain; charset=utf-16");        /**     * Constructor for doc flavor objects with the given MIME type      * and a print data representation class name of "java.lang.String".     *      * @param mimeType the mime type string     *      * @throws NullPointerException if mimeType is <code>null</code>.     * @throws IllegalArgumentException if mimeType has the wrong syntax.     */    public STRING(String mimeType)    {      super(mimeType, "java.lang.String");    }  }    /**   * Predefined static <code>DocFlavor</code> objects for document   * types which have an URL where to retrieve the print data.   * <p>All the defined doc flavors have a print data representation    * classname of "java.net.URL".</p>   *    * @author Michael Koch (konqueror@gmx.de)   */  public static class URL    extends DocFlavor  {    private static final long serialVersionUID = 2936725788144902062L;    /**     * URL doc flavor with a MIME Type of "application/octet-stream".     */    public static final DocFlavor.URL AUTOSENSE = new URL("application/octet-stream");    /**     * URL doc flavor with a MIME Type of "image/gif".     */    public static final DocFlavor.URL GIF = new URL("image/gif");    /**     * URL doc flavor with a MIME Type of "image/jpeg".     */    public static final DocFlavor.URL JPEG = new URL("image/jpeg");    /**     * URL doc flavor with a MIME Type of "application/vnd.hp-PCL".     */    public static final DocFlavor.URL PCL = new URL("application/vnd.hp-PCL");    /**     * URL doc flavor with a MIME Type of "application/pdf".     */    public static final DocFlavor.URL PDF = new URL("application/pdf");    /**     * URL doc flavor with a MIME Type of "image/png".     */    public static final DocFlavor.URL PNG = new URL("image/png");    /**     * URL doc flavor with a MIME Type of "application/postscript".     */    public static final DocFlavor.URL POSTSCRIPT = new URL("application/postscript");    /**     * URL doc flavor with a MIME Type of "text/html" in the host encoding.     */    public static final DocFlavor.URL TEXT_HTML_HOST = new URL("text/html; charset=" + hostEncoding);    /**     * URL doc flavor with a MIME Type of "text/html; charset=us-ascii".     */    public static final DocFlavor.URL TEXT_HTML_US_ASCII = new URL("text/html; charset=us-ascii");    /**     * URL doc flavor with a MIME Type of "text/html; charset=utf-16".     */    public static final DocFlavor.URL TEXT_HTML_UTF_16 = new URL("text/html; charset=utf-16");    /**     * URL doc flavor with a MIME Type of "text/html; charset=utf-16be".     */    public static final DocFlavor.URL TEXT_HTML_UTF_16BE = new URL("text/html; charset=utf-16be");    /**     * URL doc flavor with a MIME Type of "text/html; charset=utf-16le".     */    public static final DocFlavor.URL TEXT_HTML_UTF_16LE = new URL("text/html; charset=utf-16le");    /**     * URL doc flavor with a MIME Type of "text/html; charset=utf-8".     */    public static final DocFlavor.URL TEXT_HTML_UTF_8 = new URL("text/html; charset=utf-8");    /**     * URL doc flavor with a MIME Type of "text/plain" in the host encoding.     */    public static final DocFlavor.URL TEXT_PLAIN_HOST = new URL("text/plain; charset=" + hostEncoding);    /**     * URL doc flavor with a MIME Type of "text/plain; charset=us-ascii".     */    public static final DocFlavor.URL TEXT_PLAIN_US_ASCII = new URL("text/plain; charset=us-ascii");    /**     * URL doc flavor with a MIME Type of "text/plain; charset=utf-16".     */    public static final DocFlavor.URL TEXT_PLAIN_UTF_16 = new URL("text/plain; charset=utf-16");    /**     * URL doc flavor with a MIME Type of "text/plain; charset=utf-16be".     */    public static final DocFlavor.URL TEXT_PLAIN_UTF_16BE = new URL("text/plain; charset=utf-16be");    /**     * URL doc flavor with a MIME Type of "text/plain; charset=utf-16le".     */    public static final DocFlavor.URL TEXT_PLAIN_UTF_16LE = new URL("text/plain; charset=utf-16le");    /**     * URL doc flavor with a MIME Type of "text/plain; charset=utf-8".     */    public static final DocFlavor.URL TEXT_PLAIN_UTF_8 = new URL("text/plain; charset=utf-8");        /**     * Constructor for doc flavor objects with the given MIME type      * and a print data representation class name of "java.net.URL".     *      * @param mimeType the mime type string     *      * @throws NullPointerException if mimeType is <code>null</code>.     * @throws IllegalArgumentException if mimeType has the wrong syntax.     */    public URL(String mimeType)    {      super(mimeType, "java.net.URL");    }  }    private static final long serialVersionUID = -4512080796965449721L;    /**   * The string representing the host encoding. This is the encoding   * used in the predefined HOST doc flavors    * (e.g. {@link BYTE_ARRAY#TEXT_HTML_HOST}).

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?