@NotThreadSafe public class TProtocolReader extends Object
| Constructor and Description |
|---|
TProtocolReader(org.apache.thrift.protocol.TProtocol protocol) |
public TProtocolReader(org.apache.thrift.protocol.TProtocol protocol)
public org.apache.thrift.protocol.TProtocol getProtocol()
public void readStructBegin()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void readStructEnd()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean nextField()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic short getFieldId()
public byte getFieldType()
public void skipFieldData()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Object readField(ThriftCodec<?> codec) throws Exception
Exceptionpublic ByteBuffer readBinaryField() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean readBoolField()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic byte readByteField()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic double readDoubleField()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic short readI16Field()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic int readI32Field()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic long readI64Field()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic String readStringField() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic <T> T readStructField(ThriftCodec<T> codec) throws Exception
Exceptionpublic <E> Set<E> readSetField(ThriftCodec<Set<E>> setCodec) throws Exception
Exceptionpublic <E> List<E> readListField(ThriftCodec<List<E>> listCodec) throws Exception
Exceptionpublic <K,V> Map<K,V> readMapField(ThriftCodec<Map<K,V>> mapCodec) throws Exception
Exceptionpublic <T extends Enum<T>> T readEnumField(ThriftCodec<T> enumCodec) throws Exception
Exceptionpublic ByteBuffer readBinary() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean readBool()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic byte readByte()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic short readI16()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic int readI32()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic long readI64()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic double readDouble()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic String readString() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic <E> Set<E> readSet(ThriftCodec<E> elementCodec) throws Exception
Exceptionpublic <E> List<E> readList(ThriftCodec<E> elementCodec) throws Exception
Exceptionpublic <K,V> Map<K,V> readMap(ThriftCodec<K> keyCodec, ThriftCodec<V> valueCodec) throws Exception
ExceptionCopyright © 2012–2014 Facebook, Inc.. All rights reserved.