|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.thrift.protocol.TProtocolUtil
public class TProtocolUtil
Utility class with static methods for interacting with protocol data streams.
| Constructor Summary | |
|---|---|
TProtocolUtil()
|
|
| Method Summary | |
|---|---|
static void |
setMaxSkipDepth(int depth)
Specifies the maximum recursive depth that the skip function will traverse before throwing a TException. |
static void |
skip(TProtocol prot,
byte type)
Skips over the next data element from the provided input TProtocol object. |
static void |
skip(TProtocol prot,
byte type,
int maxDepth)
Skips over the next data element from the provided input TProtocol object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TProtocolUtil()
| Method Detail |
|---|
public static void setMaxSkipDepth(int depth)
depth - the maximum recursive depth. A value of 2 would allow
the skip function to skip a structure or collection with basic children,
but it would not permit skipping a struct that had a field containing
a child struct. A value of 1 would only allow skipping of simple
types and empty structs/collections.
public static void skip(TProtocol prot,
byte type)
throws TException
prot - the protocol object to read fromtype - the next value will be intepreted as this TType value.
TException
public static void skip(TProtocol prot,
byte type,
int maxDepth)
throws TException
prot - the protocol object to read fromtype - the next value will be intepreted as this TType value.maxDepth - this function will only skip complex objects to this
recursive depth, to prevent Java stack overflow.
TException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||