@NotThreadSafe public class ProtocolReader extends Object
| Constructor and Description |
|---|
ProtocolReader(TProtocolReader protocol) |
public ProtocolReader(TProtocolReader protocol)
public void readStructBegin()
throws TException
TExceptionpublic void readStructEnd()
throws TException
TExceptionpublic boolean nextField()
throws TException
TExceptionpublic short getFieldId()
public byte getFieldType()
public void skipFieldData()
throws TException
TExceptionpublic Object readField(ThriftCodec<?> codec) throws Exception
Exceptionpublic ByteBuffer readBinaryField() throws TException
TExceptionpublic boolean readBoolField()
throws TException
TExceptionpublic byte readByteField()
throws TException
TExceptionpublic double readDoubleField()
throws TException
TExceptionpublic short readI16Field()
throws TException
TExceptionpublic int readI32Field()
throws TException
TExceptionpublic long readI64Field()
throws TException
TExceptionpublic String readStringField() throws TException
TExceptionpublic <T> T readStructField(ThriftCodec<T> codec) throws Exception
Exceptionpublic boolean[] readBoolArrayField()
throws TException
TExceptionpublic short[] readI16ArrayField()
throws TException
TExceptionpublic int[] readI32ArrayField()
throws TException
TExceptionpublic long[] readI64ArrayField()
throws TException
TExceptionpublic double[] readDoubleArrayField()
throws TException
TExceptionpublic <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 TException
TExceptionpublic boolean readBool()
throws TException
TExceptionpublic byte readByte()
throws TException
TExceptionpublic short readI16()
throws TException
TExceptionpublic int readI32()
throws TException
TExceptionpublic long readI64()
throws TException
TExceptionpublic double readDouble()
throws TException
TExceptionpublic String readString() throws TException
TExceptionpublic boolean[] readBoolArray()
throws TException
TExceptionpublic short[] readI16Array()
throws TException
TExceptionpublic int[] readI32Array()
throws TException
TExceptionpublic long[] readI64Array()
throws TException
TExceptionpublic double[] readDoubleArray()
throws TException
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–2019. All rights reserved.