|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.thrift.TDeserializer
public class TDeserializer
Generic utility for easily deserializing objects from a byte array or Java String.
| Constructor Summary | |
|---|---|
TDeserializer()
Create a new TDeserializer that uses the TBinaryProtocol by default. |
|
TDeserializer(TProtocolFactory protocolFactory)
Create a new TDeserializer. |
|
| Method Summary | |
|---|---|
void |
deserialize(TBase base,
byte[] bytes)
Deserialize the Thrift object from a byte array. |
void |
deserialize(TBase base,
java.lang.String data,
java.lang.String charset)
Deserialize the Thrift object from a Java string, using a specified character set for decoding. |
void |
partialDeserialize(TBase tb,
byte[] bytes,
TFieldIdEnum... fieldIdPath)
Deserialize only a single Thrift object (addressed by recursively using field id) from a byte record. |
void |
toString(TBase base,
java.lang.String data)
Deserialize the Thrift object from a Java string, using the default JVM charset encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TDeserializer()
public TDeserializer(TProtocolFactory protocolFactory)
protocolFactory - Factory to create a protocol| Method Detail |
|---|
public void deserialize(TBase base,
byte[] bytes)
throws TException
base - The object to read intobytes - The array to read from
TException
public void deserialize(TBase base,
java.lang.String data,
java.lang.String charset)
throws TException
base - The object to read intodata - The string to read fromcharset - Valid JVM charset
TException
public void partialDeserialize(TBase tb,
byte[] bytes,
TFieldIdEnum... fieldIdPath)
throws TException
record - The object to read fromtb - The object to read intofieldIdPath - The FieldId's that define a path tb
TException
public void toString(TBase base,
java.lang.String data)
throws TException
base - The object to read intodata - The string to read from
TException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||