|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.mail.handlers.TextHandler
public class TextHandler
Constructor Summary | |
---|---|
TextHandler()
|
|
TextHandler(ActivationDataFlavor dataFlavor)
Constructor TextHandler |
Method Summary | |
---|---|
protected String |
getCharSet(String contentType)
get the character set from content type |
Object |
getContent(DataSource datasource)
Method getContent |
protected ActivationDataFlavor |
getDF()
Method getDF |
Object |
getTransferData(DataFlavor dataflavor,
DataSource datasource)
Method getTransferData |
DataFlavor[] |
getTransferDataFlavors()
Method getTransferDataFlavors |
void |
writeTo(Object object,
String contentType,
OutputStream outputstream)
Write an object of "our" type out to the provided output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextHandler()
public TextHandler(ActivationDataFlavor dataFlavor)
dataFlavor
- Method Detail |
---|
protected ActivationDataFlavor getDF()
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface DataContentHandler
public Object getTransferData(DataFlavor dataflavor, DataSource datasource) throws IOException
getTransferData
in interface DataContentHandler
dataflavor
- datasource
-
IOException
public Object getContent(DataSource datasource) throws IOException
getContent
in interface DataContentHandler
datasource
-
IOException
public void writeTo(Object object, String contentType, OutputStream outputstream) throws IOException
writeTo
in interface DataContentHandler
object
- The object to write.contentType
- The content mime type, including parameters.outputstream
- The target output stream.
IOException
protected String getCharSet(String contentType) throws ParseException
contentType
-
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |