|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.util.media.ContentTypes
public class ContentTypes
Utilities relevant to content types.
| Constructor Summary | |
|---|---|
protected |
ContentTypes()
|
| Method Summary | |
|---|---|
static java.lang.String |
getContentType(java.lang.String format)
Returns the content type of the specified format, such as "html" and "pdf", or null if not found. |
static java.lang.String |
getFormat(java.lang.String ctype)
Returns the format of the specified content type, or null if not found. |
static void |
put(java.lang.String format,
java.lang.String ctype)
Adds additional binding of the format and content type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ContentTypes()
| Method Detail |
|---|
public static final java.lang.String getContentType(java.lang.String format)
public static final java.lang.String getFormat(java.lang.String ctype)
public static final void put(java.lang.String format,
java.lang.String ctype)
You rarely need to invoke this method, unless your format is not by the default mapping.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||