public final class ThriftUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
deserialize(ThriftProtocol protocol,
byte[] source,
org.apache.thrift.TBase<?,?> dest) |
static void |
deserialize(ThriftProtocol protocol,
ByteBuffer source,
org.apache.thrift.TBase<?,?> dest)
Deserialize a message from a ByteBuffer.
|
static void |
deserialize(ThriftProtocol protocol,
InputStream source,
org.apache.thrift.TBase<?,?> dest) |
static org.apache.thrift.protocol.TProtocolFactory |
getProtocolFactory(ThriftProtocol protocol) |
static org.apache.thrift.protocol.TProtocol |
newProtocolInstance(ThriftProtocol protocol,
org.apache.thrift.transport.TTransport transport) |
static byte[] |
serialize(ThriftProtocol protocol,
org.apache.thrift.TBase<?,?> source) |
static void |
serialize(ThriftProtocol protocol,
org.apache.thrift.TBase<?,?> source,
OutputStream stream) |
static ByteBuffer |
serializeToByteBuffer(ThriftProtocol protocol,
org.apache.thrift.TBase<?,?> source) |
static String |
thriftToDebugJson(org.apache.thrift.TBase<?,?> thriftObject) |
public static org.apache.thrift.protocol.TProtocolFactory getProtocolFactory(ThriftProtocol protocol)
public static org.apache.thrift.protocol.TProtocol newProtocolInstance(ThriftProtocol protocol, org.apache.thrift.transport.TTransport transport)
public static void serialize(ThriftProtocol protocol, org.apache.thrift.TBase<?,?> source, OutputStream stream) throws ThriftException
ThriftException
public static byte[] serialize(ThriftProtocol protocol, org.apache.thrift.TBase<?,?> source) throws ThriftException
ThriftException
public static ByteBuffer serializeToByteBuffer(ThriftProtocol protocol, org.apache.thrift.TBase<?,?> source) throws ThriftException
ThriftException
public static void deserialize(ThriftProtocol protocol, byte[] source, org.apache.thrift.TBase<?,?> dest) throws ThriftException
ThriftException
public static void deserialize(ThriftProtocol protocol, InputStream source, org.apache.thrift.TBase<?,?> dest) throws ThriftException
ThriftException
public static void deserialize(ThriftProtocol protocol, ByteBuffer source, org.apache.thrift.TBase<?,?> dest) throws ThriftException
ThriftException
public static String thriftToDebugJson(org.apache.thrift.TBase<?,?> thriftObject)