public class MediaTypesUtil extends Object
MediaTypesUtil class.
| Constructor and Description |
|---|
MediaTypesUtil()
Constructor for MediaTypesUtil.
|
MediaTypesUtil(com.hp.hpl.jena.rdf.model.Model model)
Constructor for MediaTypesUtil.
|
| Modifier and Type | Method and Description |
|---|---|
org.wymiwyg.commons.mediatypes.MimeType |
getCanonicalType(org.wymiwyg.commons.mediatypes.MimeType type)
getCanonicalType.
|
static MediaTypesUtil |
getDefaultInstance()
Getter for the field
defaultInstance. |
String |
getExtensionForType(org.wymiwyg.commons.mediatypes.MimeType type)
get the extension for a given type
|
org.wymiwyg.commons.mediatypes.MimeType |
getTypeForExtension(String extension)
returns the canonical mime-type for the the given extension
|
static void |
setDefaultInstance(MediaTypesUtil defaultInstance)
Setter for the field
defaultInstance. |
public MediaTypesUtil()
throws javax.activation.MimeTypeParseException
Constructor for MediaTypesUtil.
javax.activation.MimeTypeParseException - if any.public MediaTypesUtil(com.hp.hpl.jena.rdf.model.Model model)
throws javax.activation.MimeTypeParseException
Constructor for MediaTypesUtil.
model - a Model object.javax.activation.MimeTypeParseException - if any.public static MediaTypesUtil getDefaultInstance()
Getter for the field defaultInstance.
MediaTypesUtil object.public static void setDefaultInstance(MediaTypesUtil defaultInstance)
Setter for the field defaultInstance.
defaultInstance - a MediaTypesUtil object.public org.wymiwyg.commons.mediatypes.MimeType getTypeForExtension(String extension)
extension - the extension without dotsMimeType object.public String getExtensionForType(org.wymiwyg.commons.mediatypes.MimeType type)
type - a MimeType object.public org.wymiwyg.commons.mediatypes.MimeType getCanonicalType(org.wymiwyg.commons.mediatypes.MimeType type)
getCanonicalType.
type - a MimeType object.MimeType object.Copyright © 2017. All rights reserved.