public class TSimpleJSONProtocol
extends org.apache.thrift.protocol.TProtocol
| Modifier and Type | Class and Description |
|---|---|
static class |
TSimpleJSONProtocol.CollectionMapKeyException |
protected class |
TSimpleJSONProtocol.Context |
static class |
TSimpleJSONProtocol.Factory
Factory
|
protected class |
TSimpleJSONProtocol.ListContext |
protected class |
TSimpleJSONProtocol.MapContext |
protected class |
TSimpleJSONProtocol.StructContext |
| Modifier and Type | Field and Description |
|---|---|
protected TSimpleJSONProtocol.Context |
BASE_CONTEXT |
protected TSimpleJSONProtocol.Context |
writeContext_
Current context that we are in
|
protected java.util.Stack<TSimpleJSONProtocol.Context> |
writeContextStack_
Stack of nested contexts that we may be in.
|
| Constructor and Description |
|---|
TSimpleJSONProtocol(org.apache.thrift.transport.TTransport trans)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
_writeStringData(java.lang.String s) |
protected void |
assertContextIsNotMapKey(java.lang.String invalidKeyType)
Used to make sure that we are not encountering a map whose keys are containers
|
protected void |
popWriteContext()
Pop the last write context off the stack
|
protected void |
pushWriteContext(TSimpleJSONProtocol.Context c)
Push a new write context onto the stack.
|
java.nio.ByteBuffer |
readBinary() |
boolean |
readBool() |
byte |
readByte() |
double |
readDouble() |
org.apache.thrift.protocol.TField |
readFieldBegin() |
void |
readFieldEnd() |
short |
readI16() |
int |
readI32() |
long |
readI64() |
org.apache.thrift.protocol.TList |
readListBegin() |
void |
readListEnd() |
org.apache.thrift.protocol.TMap |
readMapBegin() |
void |
readMapEnd() |
org.apache.thrift.protocol.TMessage |
readMessageBegin()
Reading methods.
|
void |
readMessageEnd() |
org.apache.thrift.protocol.TSet |
readSetBegin() |
void |
readSetEnd() |
java.lang.String |
readString() |
java.lang.String |
readStringBody(int size) |
org.apache.thrift.protocol.TStruct |
readStructBegin() |
void |
readStructEnd() |
void |
writeBinary(java.nio.ByteBuffer bin) |
void |
writeBool(boolean b) |
void |
writeByte(byte b) |
void |
writeDouble(double dub) |
void |
writeFieldBegin(org.apache.thrift.protocol.TField field) |
void |
writeFieldEnd() |
void |
writeFieldStop() |
void |
writeI16(short i16) |
void |
writeI32(int i32) |
void |
writeI64(long i64) |
void |
writeListBegin(org.apache.thrift.protocol.TList list) |
void |
writeListEnd() |
void |
writeMapBegin(org.apache.thrift.protocol.TMap map) |
void |
writeMapEnd() |
void |
writeMessageBegin(org.apache.thrift.protocol.TMessage message) |
void |
writeMessageEnd() |
void |
writeSetBegin(org.apache.thrift.protocol.TSet set) |
void |
writeSetEnd() |
void |
writeString(java.lang.String str) |
void |
writeStructBegin(org.apache.thrift.protocol.TStruct struct) |
void |
writeStructEnd() |
protected final TSimpleJSONProtocol.Context BASE_CONTEXT
protected java.util.Stack<TSimpleJSONProtocol.Context> writeContextStack_
protected TSimpleJSONProtocol.Context writeContext_
public TSimpleJSONProtocol(org.apache.thrift.transport.TTransport trans)
protected void pushWriteContext(TSimpleJSONProtocol.Context c)
protected void popWriteContext()
protected void assertContextIsNotMapKey(java.lang.String invalidKeyType)
throws TSimpleJSONProtocol.CollectionMapKeyException
public void writeMessageBegin(org.apache.thrift.protocol.TMessage message)
throws org.apache.thrift.TException
writeMessageBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeMessageEnd()
throws org.apache.thrift.TException
writeMessageEnd in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeStructBegin(org.apache.thrift.protocol.TStruct struct)
throws org.apache.thrift.TException
writeStructBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeStructEnd()
throws org.apache.thrift.TException
writeStructEnd in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeFieldBegin(org.apache.thrift.protocol.TField field)
throws org.apache.thrift.TException
writeFieldBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeFieldEnd()
writeFieldEnd in class org.apache.thrift.protocol.TProtocolpublic void writeFieldStop()
writeFieldStop in class org.apache.thrift.protocol.TProtocolpublic void writeMapBegin(org.apache.thrift.protocol.TMap map)
throws org.apache.thrift.TException
writeMapBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeMapEnd()
throws org.apache.thrift.TException
writeMapEnd in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeListBegin(org.apache.thrift.protocol.TList list)
throws org.apache.thrift.TException
writeListBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeListEnd()
throws org.apache.thrift.TException
writeListEnd in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeSetBegin(org.apache.thrift.protocol.TSet set)
throws org.apache.thrift.TException
writeSetBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeSetEnd()
throws org.apache.thrift.TException
writeSetEnd in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeBool(boolean b)
throws org.apache.thrift.TException
writeBool in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeByte(byte b)
throws org.apache.thrift.TException
writeByte in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeI16(short i16)
throws org.apache.thrift.TException
writeI16 in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeI32(int i32)
throws org.apache.thrift.TException
writeI32 in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void _writeStringData(java.lang.String s)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void writeI64(long i64)
throws org.apache.thrift.TException
writeI64 in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeDouble(double dub)
throws org.apache.thrift.TException
writeDouble in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeString(java.lang.String str)
throws org.apache.thrift.TException
writeString in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void writeBinary(java.nio.ByteBuffer bin)
throws org.apache.thrift.TException
writeBinary in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic org.apache.thrift.protocol.TMessage readMessageBegin()
throws org.apache.thrift.TException
readMessageBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void readMessageEnd()
readMessageEnd in class org.apache.thrift.protocol.TProtocolpublic org.apache.thrift.protocol.TStruct readStructBegin()
readStructBegin in class org.apache.thrift.protocol.TProtocolpublic void readStructEnd()
readStructEnd in class org.apache.thrift.protocol.TProtocolpublic org.apache.thrift.protocol.TField readFieldBegin()
throws org.apache.thrift.TException
readFieldBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void readFieldEnd()
readFieldEnd in class org.apache.thrift.protocol.TProtocolpublic org.apache.thrift.protocol.TMap readMapBegin()
throws org.apache.thrift.TException
readMapBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void readMapEnd()
readMapEnd in class org.apache.thrift.protocol.TProtocolpublic org.apache.thrift.protocol.TList readListBegin()
throws org.apache.thrift.TException
readListBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void readListEnd()
readListEnd in class org.apache.thrift.protocol.TProtocolpublic org.apache.thrift.protocol.TSet readSetBegin()
throws org.apache.thrift.TException
readSetBegin in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic void readSetEnd()
readSetEnd in class org.apache.thrift.protocol.TProtocolpublic boolean readBool()
throws org.apache.thrift.TException
readBool in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic byte readByte()
throws org.apache.thrift.TException
readByte in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic short readI16()
throws org.apache.thrift.TException
readI16 in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic int readI32()
throws org.apache.thrift.TException
readI32 in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic long readI64()
throws org.apache.thrift.TException
readI64 in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic double readDouble()
throws org.apache.thrift.TException
readDouble in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic java.lang.String readString()
throws org.apache.thrift.TException
readString in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionpublic java.lang.String readStringBody(int size)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic java.nio.ByteBuffer readBinary()
throws org.apache.thrift.TException
readBinary in class org.apache.thrift.protocol.TProtocolorg.apache.thrift.TExceptionCopyright © 2018. All Rights Reserved.