|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.net.mail.DataHandler
public class DataHandler
Maps a MIME type into an instance of a DataContentHandler.
| Constructor Summary | |
|---|---|
DataHandler()
|
|
| Method Summary | |
|---|---|
static void |
addDataContentHandler(DataContentHandler dataContentHandler,
String mimeType)
May be used to add an user-defined DataContentHandler, associated to a specific MIME type. |
static DataContentHandler |
getDataContentHandler(String mimeType)
Retrieves the DataContentHandler associated with the given MIME type, returning a BinaryContentHandler if the given MIME type is not mapped to any handler. |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataHandler()
| Method Detail |
|---|
public static void addDataContentHandler(DataContentHandler dataContentHandler,
String mimeType)
dataContentHandler - the user-defined DataContentHandler to be addedmimeType - the MIME type this DataContentHandler should be associated topublic static DataContentHandler getDataContentHandler(String mimeType)
mimeType - MIME type of the content that we need to be handled
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||