|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dyuproject.protostuff.JsonInput
public final class JsonInput
An input used for reading data with json format.
| Constructor Summary | |
|---|---|
JsonInput(org.codehaus.jackson.JsonParser parser)
|
|
JsonInput(org.codehaus.jackson.JsonParser parser,
boolean numeric)
|
|
| Method Summary | ||
|---|---|---|
int |
getLastNumber()
Gets the last field number read. |
|
|
handleUnknownField(int fieldNumber,
Schema<T> schema)
|
|
boolean |
isLastRepeated()
Returns true if the last read field was a repeated field. |
|
boolean |
isNumeric()
Returns whether the incoming messages' field names are numeric. |
|
|
mergeObject(T value,
Schema<T> schema)
|
|
boolean |
readBool()
|
|
byte[] |
readByteArray()
|
|
ByteString |
readBytes()
|
|
double |
readDouble()
|
|
int |
readEnum()
|
|
|
readFieldNumber(Schema<T> schema)
|
|
int |
readFixed32()
|
|
long |
readFixed64()
|
|
float |
readFloat()
|
|
int |
readInt32()
|
|
long |
readInt64()
|
|
int |
readSFixed32()
|
|
long |
readSFixed64()
|
|
int |
readSInt32()
|
|
long |
readSInt64()
|
|
java.lang.String |
readString()
|
|
int |
readUInt32()
|
|
long |
readUInt64()
|
|
JsonInput |
reset()
Resets this input. |
|
void |
transferByteRangeTo(Output output,
boolean utf8String,
int fieldNumber,
boolean repeated)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonInput(org.codehaus.jackson.JsonParser parser)
public JsonInput(org.codehaus.jackson.JsonParser parser,
boolean numeric)
| Method Detail |
|---|
public boolean isNumeric()
public int getLastNumber()
public boolean isLastRepeated()
public JsonInput reset()
public <T> void handleUnknownField(int fieldNumber,
Schema<T> schema)
throws java.io.IOException
handleUnknownField in interface Inputjava.io.IOException
public <T> int readFieldNumber(Schema<T> schema)
throws java.io.IOException
readFieldNumber in interface Inputjava.io.IOException
public boolean readBool()
throws java.io.IOException
readBool in interface Inputjava.io.IOException
public byte[] readByteArray()
throws java.io.IOException
readByteArray in interface Inputjava.io.IOException
public ByteString readBytes()
throws java.io.IOException
readBytes in interface Inputjava.io.IOException
public double readDouble()
throws java.io.IOException
readDouble in interface Inputjava.io.IOException
public int readEnum()
throws java.io.IOException
readEnum in interface Inputjava.io.IOException
public int readFixed32()
throws java.io.IOException
readFixed32 in interface Inputjava.io.IOException
public long readFixed64()
throws java.io.IOException
readFixed64 in interface Inputjava.io.IOException
public float readFloat()
throws java.io.IOException
readFloat in interface Inputjava.io.IOException
public int readInt32()
throws java.io.IOException
readInt32 in interface Inputjava.io.IOException
public long readInt64()
throws java.io.IOException
readInt64 in interface Inputjava.io.IOException
public int readSFixed32()
throws java.io.IOException
readSFixed32 in interface Inputjava.io.IOException
public long readSFixed64()
throws java.io.IOException
readSFixed64 in interface Inputjava.io.IOException
public int readSInt32()
throws java.io.IOException
readSInt32 in interface Inputjava.io.IOException
public long readSInt64()
throws java.io.IOException
readSInt64 in interface Inputjava.io.IOException
public java.lang.String readString()
throws java.io.IOException
readString in interface Inputjava.io.IOException
public int readUInt32()
throws java.io.IOException
readUInt32 in interface Inputjava.io.IOException
public long readUInt64()
throws java.io.IOException
readUInt64 in interface Inputjava.io.IOException
public <T> T mergeObject(T value,
Schema<T> schema)
throws java.io.IOException
mergeObject in interface Inputjava.io.IOException
public void transferByteRangeTo(Output output,
boolean utf8String,
int fieldNumber,
boolean repeated)
throws java.io.IOException
transferByteRangeTo in interface Inputjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||