View Javadoc

    1   package org.codehaus.xfire.attachments;
    2
    3   import java.awt.Image;
    4
    5
    6   /***
    7    * @author <a href="mailto:dan@envoisolutiosn.com">Dan Diephouse</a>
    8    */
    9   public class DefaultDataContentHandlerFactory
    10      extends AbstractDataContentHandlerFactory
    11  {
    12      private static ImageDataContentHandler imgHandler = new ImageDataContentHandler();
    13
    14      public DefaultDataContentHandlerFactory()
    15      {
    16          register("image/jpeg", Image.class, imgHandler);
    17          register("image/tiff", Image.class, imgHandler);
    18      }
    19  }