public abstract class AbstractCharBasedFormatter extends ProtobufFormatter
ProtobufFormatter.ParseException
Constructor and Description |
---|
AbstractCharBasedFormatter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
merge(CharSequence input,
com.google.protobuf.ExtensionRegistry extensionRegistry,
com.google.protobuf.Message.Builder builder) |
void |
merge(InputStream input,
Charset cs,
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 |
merge(Readable 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 . |
abstract void |
print(com.google.protobuf.Message message,
Appendable output) |
void |
print(com.google.protobuf.Message message,
OutputStream output,
Charset cs)
Outputs a textual representation of the Protocol Message supplied into
the parameter output.
|
abstract void |
print(com.google.protobuf.UnknownFieldSet fields,
Appendable output) |
void |
print(com.google.protobuf.UnknownFieldSet fields,
OutputStream output,
Charset cs) |
getDefaultCharset, merge, merge, merge, print, print, printToString, printToString, setDefaultCharset
public void print(com.google.protobuf.Message message, OutputStream output, Charset cs) throws IOException
ProtobufFormatter
print
in class ProtobufFormatter
message
- the protobuf message to formatoutput
- the stream to write the formatted messagecs
- the character set to useIOException
public abstract void print(com.google.protobuf.Message message, Appendable output) throws IOException
IOException
public void print(com.google.protobuf.UnknownFieldSet fields, OutputStream output, Charset cs) throws IOException
print
in class ProtobufFormatter
fields
- unknown fields to formatoutput
- output the stream to write the formatted messagecs
- the character set to useIOException
public abstract void print(com.google.protobuf.UnknownFieldSet fields, Appendable output) throws IOException
IOException
public void merge(InputStream input, Charset cs, com.google.protobuf.ExtensionRegistry extensionRegistry, com.google.protobuf.Message.Builder builder) throws IOException
ProtobufFormatter
input
and merge the contents
into builder
.merge
in class ProtobufFormatter
IOException
public abstract void merge(CharSequence input, com.google.protobuf.ExtensionRegistry extensionRegistry, com.google.protobuf.Message.Builder builder) throws IOException
IOException
public void merge(Readable input, com.google.protobuf.ExtensionRegistry extensionRegistry, com.google.protobuf.Message.Builder builder) throws IOException
input
and merge the contents into builder
.
Extensions will be recognized if they are registered in extensionRegistry
.IOException
Copyright © 2019. All rights reserved.