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