Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » http » [javadoc | source]
org.apache.tomcat.util.http
public class: ContentType [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.http.ContentType
Usefull methods for Content-Type processing
Method from org.apache.tomcat.util.http.ContentType Summary:
getCharsetFromContentType,   hasCharset
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.http.ContentType Detail:
 public static String getCharsetFromContentType(String contentType) 
    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.
 public static boolean hasCharset(String type) 
    Returns true if the given content type contains a charset component, false otherwise.