org.apache.geronimo.activation.handlers
Class AbstractTextHandler

java.lang.Object
  extended by org.apache.geronimo.activation.handlers.AbstractTextHandler
All Implemented Interfaces:
DataContentHandler
Direct Known Subclasses:
TextHtmlHandler, TextPlainHandler, TextXmlHandler

public class AbstractTextHandler
extends Object
implements DataContentHandler


Constructor Summary
AbstractTextHandler(DataFlavor flavour)
           
 
Method Summary
 Object getContent(DataSource ds)
           
 Object getTransferData(DataFlavor dataFlavor, DataSource dataSource)
           
 DataFlavor[] getTransferDataFlavors()
           
 void writeTo(Object o, String mimeType, OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTextHandler

public AbstractTextHandler(DataFlavor flavour)
Method Detail

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 o,
                    String mimeType,
                    OutputStream os)
             throws IOException
Specified by:
writeTo in interface DataContentHandler
Throws:
IOException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.