Package javax.activation

Examples of javax.activation.ActivationDataFlavor


import javax.activation.ActivationDataFlavor;

public class HtmlHandler extends TextHandler {
    public HtmlHandler() {
        super(new ActivationDataFlavor(java.lang.String.class, "text/html", "HTML String"));
    }
View Full Code Here


import javax.activation.ActivationDataFlavor;

public class XMLHandler extends TextHandler {
    public XMLHandler() {
        super(new ActivationDataFlavor(java.lang.String.class, "text/xml", "XML String"));
    }
View Full Code Here

     * Field dataFlavor
     */
    ActivationDataFlavor dataFlavor;

    public TextHandler(){
        dataFlavor = new ActivationDataFlavor(java.lang.String.class, "text/plain", "Text String");
    }
View Full Code Here

     * Field dataFlavor
     */
    ActivationDataFlavor dataFlavor;

    public MultipartHandler(){
        dataFlavor = new ActivationDataFlavor(javax.mail.internet.MimeMultipart.class, "multipart/mixed", "Multipart");
    }
View Full Code Here

     * Field dataFlavor
     */
    ActivationDataFlavor dataFlavor;

    public MessageHandler(){
        dataFlavor = new ActivationDataFlavor(java.lang.String.class, "message/rfc822", "Text");
    }
View Full Code Here

/*     */
/*  84 */     for (int i = 0; i < mimeTypes.length; i++)
/*     */     {
/*     */       try
/*     */       {
/*  88 */         DataFlavor flavor = new ActivationDataFlavor(Image.class, mimeTypes[i], "Image");
/*  89 */         flavs.add(flavor);
/*     */       }
/*     */       catch (IllegalArgumentException iae)
/*     */       {
/*  94 */         log.warn("Unsupported MIME Type '" + mimeTypes[i] + "'");
View Full Code Here

    private final DataFlavor[] flavors;

    public XmlDataContentHandler() throws ClassNotFoundException {
        flavors = new DataFlavor[3];
        flavors[0] = new ActivationDataFlavor(StreamSource.class, "text/xml", "XML");
        flavors[1] = new ActivationDataFlavor(StreamSource.class, "application/xml", "XML");
        flavors[2] = new ActivationDataFlavor(String.class, "text/xml", "XML String");
    }
View Full Code Here

    public ImageDataContentHandler() {
        String[] mimeTypes = ImageIO.getReaderMIMETypes();
        flavor = new DataFlavor[mimeTypes.length];
        for(int i=0; i < mimeTypes.length; i++) {
            flavor[i] = new ActivationDataFlavor(Image.class, mimeTypes[i], "Image");
        }
    }
View Full Code Here

    private final DataFlavor[] flavors;

    public XmlDataContentHandler() throws ClassNotFoundException {
        flavors = new DataFlavor[3];
        flavors[0] = new ActivationDataFlavor(StreamSource.class, "text/xml", "XML");
        flavors[1] = new ActivationDataFlavor(StreamSource.class, "application/xml", "XML");
        flavors[2] = new ActivationDataFlavor(String.class, "text/xml", "XML String");
    }
View Full Code Here

    public ImageDataContentHandler() {
        String[] mimeTypes = ImageIO.getReaderMIMETypes();
        flavor = new DataFlavor[mimeTypes.length];
        for(int i=0; i < mimeTypes.length; i++) {
            flavor[i] = new ActivationDataFlavor(Image.class, mimeTypes[i], "Image");
        }
    }
View Full Code Here

TOP

Related Classes of javax.activation.ActivationDataFlavor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.