| Constructor and Description |
|---|
JsonXByteArrayInput(byte[] buf,
int offset,
int len,
boolean allowQuotedInt64,
char[] charBuf,
int charOffset,
int charLen,
boolean charBufAsLimit,
int previewMaxLen) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastNumber()
Gets the last field number read.
|
<T> void |
handleUnknownField(int fieldNumber,
Schema<T> schema) |
boolean |
isLastRepeated()
Returns true if the last read field was a repeated field.
|
<T> T |
mergeObject(T value,
Schema<T> schema) |
boolean |
readBool() |
byte[] |
readByteArray() |
ByteString |
readBytes() |
double |
readDouble() |
int |
readEnum() |
int |
readEnumIdx(EnumMapping mapping) |
<T> int |
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() |
JsonXByteArrayInput |
reset()
Resets this input.
|
JsonXByteArrayInput |
reset(byte[] buf,
int offset,
int len)
Resets this input.
|
JsonXByteArrayInput |
reset(int offset)
Resets this input.
|
JsonXByteArrayInput |
reset(int offset,
int len)
Resets this input.
|
JsonXByteArrayInput |
setBounds(int offset,
int limit)
Sets the offset and limit (which effectively re-uses this input).
|
void |
transferByteRangeTo(Output output,
boolean utf8String,
int fieldNumber,
boolean repeated) |
void |
transferEnumTo(Output output,
EnumMapping mapping,
int fieldNumber,
boolean repeated) |
public JsonXByteArrayInput(byte[] buf,
int offset,
int len,
boolean allowQuotedInt64,
char[] charBuf,
int charOffset,
int charLen,
boolean charBufAsLimit,
int previewMaxLen)
public int getLastNumber()
public boolean isLastRepeated()
public JsonXByteArrayInput reset()
public JsonXByteArrayInput reset(int offset)
public JsonXByteArrayInput reset(int offset, int len)
public JsonXByteArrayInput setBounds(int offset, int limit)
public JsonXByteArrayInput reset(byte[] buf, int offset, int len)
public <T> void handleUnknownField(int fieldNumber,
Schema<T> schema)
throws java.io.IOException
handleUnknownField in interface Inputjava.io.IOExceptionpublic <T> int readFieldNumber(Schema<T> schema) throws java.io.IOException
readFieldNumber in interface Inputjava.io.IOExceptionpublic boolean readBool()
throws java.io.IOException
public double readDouble()
throws java.io.IOException
readDouble in interface Inputjava.io.IOExceptionpublic int readEnum()
throws java.io.IOException
public int readEnumIdx(EnumMapping mapping) throws java.io.IOException
readEnumIdx in interface Inputjava.io.IOExceptionpublic int readFixed32()
throws java.io.IOException
readFixed32 in interface Inputjava.io.IOExceptionpublic long readFixed64()
throws java.io.IOException
readFixed64 in interface Inputjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
public int readInt32()
throws java.io.IOException
public long readInt64()
throws java.io.IOException
public int readSFixed32()
throws java.io.IOException
readSFixed32 in interface Inputjava.io.IOExceptionpublic long readSFixed64()
throws java.io.IOException
readSFixed64 in interface Inputjava.io.IOExceptionpublic int readSInt32()
throws java.io.IOException
readSInt32 in interface Inputjava.io.IOExceptionpublic long readSInt64()
throws java.io.IOException
readSInt64 in interface Inputjava.io.IOExceptionpublic int readUInt32()
throws java.io.IOException
readUInt32 in interface Inputjava.io.IOExceptionpublic long readUInt64()
throws java.io.IOException
readUInt64 in interface Inputjava.io.IOExceptionpublic ByteString readBytes() throws java.io.IOException
public byte[] readByteArray()
throws java.io.IOException
readByteArray in interface Inputjava.io.IOExceptionpublic java.lang.String readString()
throws java.io.IOException
readString in interface Inputjava.io.IOExceptionpublic <T> T mergeObject(T value,
Schema<T> schema)
throws java.io.IOException
mergeObject in interface Inputjava.io.IOExceptionpublic void transferByteRangeTo(Output output, boolean utf8String, int fieldNumber, boolean repeated) throws java.io.IOException
transferByteRangeTo in interface Inputjava.io.IOExceptionpublic void transferEnumTo(Output output, EnumMapping mapping, int fieldNumber, boolean repeated) throws java.io.IOException
transferEnumTo in interface Inputjava.io.IOExceptionCopyright © 2009-2023. All Rights Reserved.