@Deprecated
public class ResponseHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
characterEncodingPattern
Deprecated.
|
static java.lang.String |
defaultCharacterEncoding
Deprecated.
|
Modifier | Constructor and Description |
---|---|
private |
ResponseHandler()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCharacterEncoding(java.lang.String contentTypeHeader)
Deprecated.
Gets the character encoding of a response.
|
static java.lang.String |
getCharacterEncoding(java.net.URLConnection connection)
Deprecated.
|
public static final java.lang.String defaultCharacterEncoding
private static final java.util.regex.Pattern characterEncodingPattern
public static java.lang.String getCharacterEncoding(java.net.URLConnection connection)
public static java.lang.String getCharacterEncoding(java.lang.String contentTypeHeader)
Gets the character encoding of a response. (Note that this is different to the content-encoding)
contentTypeHeader
- the value of the content-type HTTP header eg: text/html;
charset=ISO-8859-4