public static class TextFormat.Parser extends Object
Use TextFormat.getParser()
to obtain the default parser, or
TextFormat.Parser.Builder
to control the parser behavior.
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
merge(CharSequence input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
Parse a text-format message from
input and merge the contents
into builder . |
void |
merge(CharSequence input,
Message.Builder builder)
Parse a text-format message from
input and merge the contents
into builder . |
void |
merge(Readable input,
ExtensionRegistry extensionRegistry,
Message.Builder builder)
Parse a text-format message from
input and merge the contents
into builder . |
void |
merge(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 . |
public static TextFormat.Parser.Builder newBuilder()
TextFormat.Parser.Builder
.public void merge(Readable input, Message.Builder builder) throws IOException
input
and merge the contents
into builder
.IOException
public void merge(CharSequence input, Message.Builder builder) throws TextFormat.ParseException
input
and merge the contents
into builder
.TextFormat.ParseException
public void merge(Readable input, ExtensionRegistry extensionRegistry, Message.Builder builder) throws IOException
input
and merge the contents
into builder
. Extensions will be recognized if they are
registered in extensionRegistry
.IOException
public void merge(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
Copyright © 2008–2015 Google. All rights reserved.