|
Lizzy v1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchristophedelory.content.type.ContentTypeFactory
public final class ContentTypeFactory
A content type factory.
| Method Summary | |
|---|---|
ContentType |
getContentType(String contentName)
Returns a content type representing the given content name (file or URL). |
ContentType |
getContentType(URI uri)
Returns a content type representing the given content URI. |
static ContentTypeFactory |
getInstance()
Returns the unique class instance. |
void |
reloadProviders()
Refreshes the list of providers managed by this factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ContentTypeFactory getInstance()
null.public void reloadProviders()
public ContentType getContentType(String contentName)
contentName - a content (file or URL) name. Shall not be null.
null if none was found.
NullPointerException - if contentName is null.
SecurityException - if a required system property value cannot be accessed.getContentType(java.lang.String)public ContentType getContentType(URI uri)
uri - a content URI. Shall not be null.
null if none was found.
NullPointerException - if uri is null.ContentTypeProvider.getContentType(java.lang.String)
|
© 2008-2009 Christophe Delory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||