| java.lang.Object org.zkoss.util.media.ContentTypes
ContentTypes | public class ContentTypes (Code) | | Utilities relevant to content types.
author: tomyeh |
Method Summary | |
final public static String | getContentType(String format) Returns the content type of the specified format,
such as "html" and "pdf", or null if not found. | final public static String | getFormat(String ctype) Returns the format of the specified content type, or null if not found. | final public static void | put(String format, String ctype) Adds additional binding of the format and content type. |
ContentTypes | protected ContentTypes()(Code) | | |
getContentType | final public static String getContentType(String format)(Code) | | Returns the content type of the specified format,
such as "html" and "pdf", or null if not found.
|
getFormat | final public static String getFormat(String ctype)(Code) | | Returns the format of the specified content type, or null if not found.
|
put | final public static void put(String format, String ctype)(Code) | | Adds additional binding of the format and content type.
You rarely need to invoke this method, unless your format is not
by the default mapping.
|
|
|