public class DataHandler
extends java.lang.Object
Constructor and Description |
---|
DataHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
addDataContentHandler(DataContentHandler dataContentHandler,
java.lang.String mimeType)
May be used to add an user-defined DataContentHandler, associated to a specific MIME type.
|
static DataContentHandler |
getDataContentHandler(java.lang.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.
|
public static void addDataContentHandler(DataContentHandler dataContentHandler, java.lang.String mimeType)
dataContentHandler
- the user-defined DataContentHandler to be addedmimeType
- the MIME type this DataContentHandler should be associated topublic static DataContentHandler getDataContentHandler(java.lang.String mimeType)
mimeType
- MIME type of the content that we need to be handled