org.apache.geronimo.activation.handlers
Class AbstractImageHandler
java.lang.Object
org.apache.geronimo.activation.handlers.AbstractImageHandler
- All Implemented Interfaces:
- DataContentHandler
- Direct Known Subclasses:
- ImageGifHandler, ImageJpegHandler
public class AbstractImageHandler
- extends Object
- implements DataContentHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractImageHandler
public AbstractImageHandler(DataFlavor flavour)
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interface DataContentHandler
getTransferData
public Object getTransferData(DataFlavor dataFlavor,
DataSource dataSource)
throws UnsupportedFlavorException,
IOException
- Specified by:
getTransferData
in interface DataContentHandler
- Throws:
UnsupportedFlavorException
IOException
getContent
public Object getContent(DataSource ds)
throws IOException
- Specified by:
getContent
in interface DataContentHandler
- Throws:
IOException
writeTo
public void writeTo(Object obj,
String mimeType,
OutputStream os)
throws IOException
- Specified by:
writeTo
in interface DataContentHandler
- Throws:
IOException
Copyright © 2006 Apache Software Foundation. All Rights Reserved.