|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.protobuf.TextFormat.Parser
public static class TextFormat.Parser
Parser for text-format proto2 instances. This class is thread-safe. The implementation largely follows google/protobuf/text_format.cc.
Use TextFormat.getParser() to obtain the default parser, or
TextFormat.Parser.Builder to control the parser behavior.
| Nested Class Summary | |
|---|---|
static class |
TextFormat.Parser.Builder
Builder that can be used to obtain new instances of Parser. |
static class |
TextFormat.Parser.SingularOverwritePolicy
Determines if repeated values for non-repeated fields and oneofs are permitted. |
| Method Summary | |
|---|---|
void |
merge(java.lang.CharSequence input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
Parse a text-format message from input and merge the contents
into builder. |
void |
merge(java.lang.CharSequence input,
Message.Builder builder)
Parse a text-format message from input and merge the contents
into builder. |
void |
merge(java.lang.Readable input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
Parse a text-format message from input and merge the contents
into builder. |
void |
merge(java.lang.Readable input,
Message.Builder builder)
Parse a text-format message from input and merge the contents
into builder. |
static TextFormat.Parser.Builder |
newBuilder()
Returns a new instance of TextFormat.Parser.Builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TextFormat.Parser.Builder newBuilder()
TextFormat.Parser.Builder.
public void merge(java.lang.Readable input,
Message.Builder builder)
throws java.io.IOException
input and merge the contents
into builder.
java.io.IOException
public void merge(java.lang.CharSequence input,
Message.Builder builder)
throws TextFormat.ParseException
input and merge the contents
into builder.
TextFormat.ParseException
public void merge(java.lang.Readable input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
throws java.io.IOException
input and merge the contents
into builder. Extensions will be recognized if they are
registered in extensionRegistry.
java.io.IOException
public void merge(java.lang.CharSequence input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
throws TextFormat.ParseException
input and merge the contents
into builder. Extensions will be recognized if they are
registered in extensionRegistry.
TextFormat.ParseException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||