public class ContentType extends Object
| Constructor and Description | 
|---|
| ContentType() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | getCharsetFromContentType(String contentType)Parse the character encoding from the specified content type header. | 
| static boolean | hasCharset(String type)Returns true if the given content type contains a charset component,
 false otherwise. | 
public static String getCharsetFromContentType(String contentType)
null is returned.contentType - a content type headerpublic static boolean hasCharset(String type)
type - Content typeCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.