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, setDefaultCharsetpublic void print(com.google.protobuf.Message message,
OutputStream output,
Charset cs)
throws IOException
ProtobufFormatterprint in class ProtobufFormattermessage - the protobuf message to formatoutput - the stream to write the formatted messagecs - the character set to useIOExceptionpublic abstract void print(com.google.protobuf.Message message,
Appendable output)
throws IOException
IOExceptionpublic void print(com.google.protobuf.UnknownFieldSet fields,
OutputStream output,
Charset cs)
throws IOException
print in class ProtobufFormatterfields - unknown fields to formatoutput - output the stream to write the formatted messagecs - the character set to useIOExceptionpublic abstract void print(com.google.protobuf.UnknownFieldSet fields,
Appendable output)
throws IOException
IOExceptionpublic void merge(InputStream input, Charset cs, com.google.protobuf.ExtensionRegistry extensionRegistry, com.google.protobuf.Message.Builder builder) throws IOException
ProtobufFormatterinput and merge the contents
into builder.merge in class ProtobufFormatterIOExceptionpublic abstract void merge(CharSequence input, com.google.protobuf.ExtensionRegistry extensionRegistry, com.google.protobuf.Message.Builder builder) throws IOException
IOExceptionpublic 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.IOExceptionCopyright © 2016. All rights reserved.