public class ResponseUtils extends Object
| Constructor and Description |
|---|
ResponseUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(InputStream is) |
static String |
getCharsetFromContentType(String contentType)
Parse out a charset from a content type header.
|
static boolean |
isGzipped(org.apache.http.Header contentEncoding) |
public static String getCharsetFromContentType(String contentType)
contentType - e.g. "text/html; charset=EUC-JP"public static byte[] getBytes(InputStream is) throws IOException
IOExceptionpublic static boolean isGzipped(org.apache.http.Header contentEncoding)
Copyright © 2014. All rights reserved.