public class ResponseHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultCharacterEncoding |
| Constructor and Description |
|---|
ResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCharacterEncoding(String contentTypeHeader)
Gets the character encoding of a response.
|
static String |
getCharacterEncoding(URLConnection connection) |
public static final String defaultCharacterEncoding
public static String getCharacterEncoding(URLConnection connection)
public static String getCharacterEncoding(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-4Copyright © 2015. All Rights Reserved.