Package | Description |
---|---|
com.googlecode.protobuf.format |
Modifier and Type | Method and Description |
---|---|
JsonFormat.ParseException |
JsonFormat.Tokenizer.parseException(String description)
Returns a
JsonFormat.ParseException with the current line and column numbers in the
description, suitable for throwing. |
JsonFormat.ParseException |
JsonFormat.Tokenizer.parseExceptionPreviousToken(String description)
Returns a
JsonFormat.ParseException with the line and column numbers of the previous token
in the description, suitable for throwing. |
Modifier and Type | Method and Description |
---|---|
void |
JsonFormat.Tokenizer.consume(String token)
If the next token exactly matches
token , consume it. |
boolean |
JsonFormat.Tokenizer.consumeBoolean()
If the next token is a boolean, consume it and return its value.
|
com.google.protobuf.ByteString |
JsonFormat.Tokenizer.consumeByteString()
If the next token is a string, consume it, unescape it as a
ByteString , and return it. |
double |
JsonFormat.Tokenizer.consumeDouble()
If the next token is a double, consume it and return its value.
|
float |
JsonFormat.Tokenizer.consumeFloat()
If the next token is a float, consume it and return its value.
|
String |
CouchDBFormat.Tokenizer.consumeIdentifier() |
String |
JsonFormat.Tokenizer.consumeIdentifier()
If the next token is an identifier, consume it and return its value.
|
int |
JsonFormat.Tokenizer.consumeInt32()
If the next token is a 32-bit signed integer, consume it and return its value.
|
long |
JsonFormat.Tokenizer.consumeInt64()
If the next token is a 64-bit signed integer, consume it and return its value.
|
String |
JsonFormat.Tokenizer.consumeString()
If the next token is a string, consume it and return its (unescaped) value.
|
int |
JsonFormat.Tokenizer.consumeUInt32()
If the next token is a 32-bit unsigned integer, consume it and return its value.
|
long |
JsonFormat.Tokenizer.consumeUInt64()
If the next token is a 64-bit unsigned integer, consume it and return its value.
|
void |
CouchDBFormat.merge(CharSequence input,
com.google.protobuf.ExtensionRegistry extensionRegistry,
com.google.protobuf.Message.Builder builder)
Parse a text-format message from
input and merge the contents into builder . |
void |
JsonFormat.merge(CharSequence input,
com.google.protobuf.ExtensionRegistry extensionRegistry,
com.google.protobuf.Message.Builder builder)
Parse a text-format message from
input and merge the contents into builder . |
protected void |
JsonFormat.mergeField(JsonFormat.Tokenizer tokenizer,
com.google.protobuf.ExtensionRegistry extensionRegistry,
com.google.protobuf.Message.Builder builder)
Parse a single field from
tokenizer and merge it into builder . |
Copyright © 2016. All rights reserved.