public class ThriftDeserialization extends Object
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<org.apache.thrift.TSerializer> |
SERIALIZER_SIMPLE_JSON |
| Constructor and Description |
|---|
ThriftDeserialization() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeB64IfNeeded(byte[] src) |
static <T extends org.apache.thrift.TBase> |
detectAndDeserialize(byte[] bytes,
T thriftObj)
Deserializes byte-array into thrift object.
|
public static final ThreadLocal<org.apache.thrift.TSerializer> SERIALIZER_SIMPLE_JSON
public static byte[] decodeB64IfNeeded(byte[] src)
public static <T extends org.apache.thrift.TBase> T detectAndDeserialize(byte[] bytes,
T thriftObj)
throws org.apache.thrift.TException
Supporting binary, compact and json protocols, and the byte array could be or not be encoded by Base64.
bytes - the byte-array to deserializethriftObj - the output thrift objectorg.apache.thrift.TExceptionCopyright © 2011–2017. All rights reserved.