public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
consumeFully(org.apache.http.HttpEntity entity)
If the passed entity has content, make sure it is fully
read and closed.
|
static Object |
fromJSON(byte[] utf8) |
static Map<String,Object> |
makeMap(Object... keyVals) |
static byte[] |
toJSON(Object o) |
static byte[] |
toUTF8(org.noggit.CharArr out) |
public static byte[] toJSON(Object o)
public static byte[] toUTF8(org.noggit.CharArr out)
public static Object fromJSON(byte[] utf8)
public static void consumeFully(org.apache.http.HttpEntity entity)
entity - to consume or nullCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.