public class ObjectFormatInfo extends Object
Modifier and Type | Method and Description |
---|---|
String |
getExtension(ObjectFormat format)
Look up the extension for an ObjectFormat.
|
String |
getExtension(String formatID)
Look up the extension for an ObjectFormat based on the format identifier
for that ObjectFormat.
|
String |
getMimeType(ObjectFormat format)
Look up the mime type for an ObjectFormat.
|
String |
getMimeType(String formatID)
Look up the mime type for an ObjectFormat based on the format identifier
for that ObjectFormat.
|
static ObjectFormatInfo |
instance()
Get the single instance of this class, creating it when needed on
first invocation.
|
static void |
reload()
Cause the ObjectFormatInfo to reload its data, which enables a calling application
to programatically modify the underlying mapping data and then reload the
mappings in this class for use without restarting the application.
|
public static ObjectFormatInfo instance()
public static void reload()
public String getMimeType(String formatID)
formatID
- the identifier of the ObjectFormat to be looked uppublic String getMimeType(ObjectFormat format)
format
- the ObjectFormat to be looked uppublic String getExtension(String formatID)
formatID
- the identifier of the ObjectFormat to be looked uppublic String getExtension(ObjectFormat format)
format
- the ObjectFormat to be looked upCopyright © 2016. All Rights Reserved.