PROXY  WHOIS  RQUOTE  TEXTS  SOFT  FOREX  BBOARD
 Music  Philosophy  Code  Literature  Russian

= ROOT|Technical|Code_Examples|Java|javax|print|DocFlavor.java =

page 9 of 15



    	public static final BYTE_ARRAY JPEG = new BYTE_ARRAY ("image/jpeg");

    	/**
    	 * Doc flavor with MIME type = <CODE>"image/png"</CODE>, print data 
    	 * representation class name = <CODE>"[B"</CODE> (byte array). 
    	 */
    	public static final BYTE_ARRAY PNG = new BYTE_ARRAY ("image/png");

    	/**
    	 * Doc flavor with MIME type =
	 * <CODE>"application/octet-stream"</CODE>, 
    	 * print data representation class name = <CODE>"[B"</CODE> (byte 
    	 * array). The client must determine that data described 
	 * using this DocFlavor is valid for the printer.
    	 */
    	public static final BYTE_ARRAY AUTOSENSE =
	    new BYTE_ARRAY ("application/octet-stream");

    }

    /**
     * Class DocFlavor.INPUT_STREAM provides predefined static constant 
     * DocFlavor objects for example doc flavors using a byte stream ({@link 
     * java.io.InputStream <CODE>java.io.InputStream</CODE>}) as the print  
     * data representation class. 
     * <P>
     *
     * @author  Alan Kaminsky
     */
    public static class INPUT_STREAM extends DocFlavor {

	private static final long serialVersionUID = -7045842700749194127L;

    	/**
    	 * Constructs a new doc flavor with the given MIME type and a print  
    	 * data representation class name of
	 * <CODE>"java.io.InputStream"</CODE> (byte stream). 
    	 *
    	 * @param  mimeType   MIME media type string.
    	 *
    	 * @exception  NullPointerException
    	 *     (unchecked exception) Thrown if <CODE>mimeType</CODE> is null. 
    	 * @exception  IllegalArgumentException
    	 *     (unchecked exception) Thrown if <CODE>mimeType</CODE> does not 
    	 *     obey the syntax for a MIME media type string. 
    	 */
    	public INPUT_STREAM (String mimeType) {
	    super (mimeType, "java.io.InputStream");
	}

    	/**
    	 * Doc flavor with MIME type = <CODE>"text/plain"</CODE>,
	 * encoded in the host platform encoding.
	 * See {@link DocFlavor#hostEncoding <CODE>hostEncoding</CODE>}
    	 * Print data representation class name =
	 * <CODE>"java.io.InputStream"</CODE> (byte stream). 
    	 */
    	public static final INPUT_STREAM TEXT_PLAIN_HOST =
	    new INPUT_STREAM ("text/plain; charset="+hostEncoding);

    	/**
    	 * Doc flavor with MIME type =
	 * <CODE>"text/plain; charset=utf-8"</CODE>, 
    	 * print data representation class name =
	 * <CODE>"java.io.InputStream"</CODE> (byte stream). 
    	 */
    	public static final INPUT_STREAM TEXT_PLAIN_UTF_8 =
	    new INPUT_STREAM ("text/plain; charset=utf-8");

   	/**
    	 * Doc flavor with MIME type =
	 * <CODE>"text/plain; charset=utf-16"</CODE>,
    	 * print data representation class name =
         * <CODE>"java.io.InputStream"</CODE> (byte stream). 
    	 */
    	public static final INPUT_STREAM TEXT_PLAIN_UTF_16 =
	    new INPUT_STREAM ("text/plain; charset=utf-16");

   	/**
    	 * Doc flavor with MIME type =
	 * <CODE>"text/plain; charset=utf-16be"</CODE>
	 * (big-endian byte ordering), 
    	 * print data representation class name =
	 * <CODE>"java.io.InputStream"</CODE> (byte stream). 
    	 */
    	public static final INPUT_STREAM TEXT_PLAIN_UTF_16BE =
	    new INPUT_STREAM ("text/plain; charset=utf-16be");

   	/**
    	 * Doc flavor with MIME type =
	 * <CODE>"text/plain; charset=utf-16le"</CODE>
	 * (little-endian byte ordering), 
    	 * print data representation class name =
	 * <CODE>"java.io.InputStream"</CODE> (byte stream). 
    	 */
    	public static final INPUT_STREAM TEXT_PLAIN_UTF_16LE =
	    new INPUT_STREAM ("text/plain; charset=utf-16le");

    	/**
    	 * Doc flavor with MIME type =
=9=

1|2|3|4|5|6|7|8| < PREV = PAGE 9 = NEXT > |10|11|12|13|14|15

UP TO ROOT | UP TO DIR | TO FIRST PAGE

Google
 


E-mail Facebook Google Digg del.icio.us BlinkList Fark Furl Ma.gnolia Netscape NewsVine Reddit Slashdot Spurl StumbleUpon Technorati YahooMyWeb LiveJournal Blogmarks TwitThis Live News2.ru BobrDobr.ru Memori.ru MoeMesto.ru

0.0114939 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU)