| java.lang.Object org.apache.tomcat.util.http.ContentType
ContentType | public class ContentType (Code) | | Usefull methods for Content-Type processing
author: James Duncan Davidson [duncan@eng.sun.com] author: James Todd [gonzo@eng.sun.com] author: Jason Hunter [jch@eng.sun.com] author: Harish Prabandham author: costin@eng.sun.com |
Method Summary | |
public static String | getCharsetFromContentType(String contentType) Parse the character encoding from the specified content type header. | public static boolean | hasCharset(String type) Returns true if the given content type contains a charset component,
false otherwise. |
getCharsetFromContentType | public static String getCharsetFromContentType(String contentType)(Code) | | Parse the character encoding from the specified content type header.
If the content type is null, or there is no explicit character encoding,
null is returned.
Parameters: contentType - a content type header |
hasCharset | public static boolean hasCharset(String type)(Code) | | Returns true if the given content type contains a charset component,
false otherwise.
Parameters: type - Content type true if the given content type contains a charset component,false otherwise |
|
|