Parser interface which implements as many methods of that
interface as possible in terms of other methods.Note
This class implements all the convenience methods in the Parser interface. See
Parser for related javadocs. Subclasses need to implement Parser#parsePartialFrom(CodedInputStream, ExtensionRegistryLite)
| Modifier and Type | Field and Description |
|---|---|
| private static final ExtensionRegistryLite |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private MessageType | Returns: The message to check.Helper method to check if message is initialized. |
| private UninitializedMessageException | newUninitializedMessageException(MessageType message)
Creates an UninitializedMessageException for MessageType. |
| public MessageType | parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Implements com. parseDelimitedFrom(InputStream) but supporting extensions.
|
| public MessageType | parseDelimitedFrom(InputStream input)
Implements com. parseFrom(InputStream), but does not read until EOF.
|
| public MessageType | parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Implements com. parseFrom(CodedInputStream), but also parses extensions.
|
| public MessageType | parseFrom(CodedInputStream input)
Implements com. MessageType from the input.
|
| public MessageType | parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(ByteString data)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(ByteBuffer data)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(byte[] data, int off, int len)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(byte[] data)
Implements com. data as a message of MessageType.
|
| public MessageType | parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Implements com. MessageType from input.
|
| public MessageType | parseFrom(InputStream input)
Implements com. MessageType from input.
|
| public MessageType | parsePartialDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Implements com. parseDelimitedFrom(InputStream, ExtensionRegistryLite), but does not throw an
exception if the message is missing required fields.
|
| public MessageType | parsePartialDelimitedFrom(InputStream input)
Implements com. parseDelimitedFrom(InputStream), but does not throw an exception if the message
is missing required fields.
|
| public MessageType | parsePartialFrom(CodedInputStream input)
Implements com. parseFrom(CodedInputStream), but does not throw an exception if the message is
missing required fields.
|
| public MessageType | parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Implements com. parseFrom(ByteString, ExtensionRegistryLite), but does not throw an exception if
the message is missing required fields.
|
| public MessageType | parsePartialFrom(ByteString data)
Implements com. parseFrom(ByteString), but does not throw an exception if the message is missing
required fields.
|
| public MessageType | parsePartialFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry)
Implements com. parseFrom(ByteString, ExtensionRegistryLite), but does not throw an exception if
the message is missing required fields.
|
| public MessageType | parsePartialFrom(byte[] data, int off, int len)
Implements com. parseFrom(byte[], int, int), but does not throw an exception if the message is
missing required fields.
|
| public MessageType | parsePartialFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Implements com. parseFrom(byte[], ExtensionRegistryLite), but does not throw an exception if the
message is missing required fields.
|
| public MessageType | parsePartialFrom(byte[] data)
Implements com. parseFrom(byte[]), but does not throw an exception if the message is missing
required fields.
|
| public MessageType | parsePartialFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Implements com. parseFrom(InputStream, ExtensionRegistryLite), but does not throw an exception if
the message is missing required fields.
|
| public MessageType | parsePartialFrom(InputStream input)
Implements com. parseFrom(InputStream), but does not throw an exception if the message is missing
required fields.
|
| EMPTY_REGISTRY | back to summary |
|---|---|
| private static final ExtensionRegistryLite EMPTY_REGISTRY | |
| AbstractParser | back to summary |
|---|---|
| public AbstractParser() | |
| checkMessageInitialized | back to summary |
|---|---|
| private MessageType checkMessageInitialized(MessageType message) throws InvalidProtocolBufferException Helper method to check if message is initialized.
| |
| newUninitializedMessageException | back to summary |
|---|---|
| private UninitializedMessageException newUninitializedMessageException(MessageType message) Creates an UninitializedMessageException for MessageType. | |
| parseDelimitedFrom | back to summary |
|---|---|
| public MessageType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parseDelimitedFrom | back to summary |
|---|---|
| public MessageType parseDelimitedFrom(InputStream input) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException Implements com. Doc from com. Parses a message of Note The caller should call
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(ByteString data) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(ByteBuffer data) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(byte[] data) throws InvalidProtocolBufferException Implements com. Doc from com. Parses
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Parses a message of
| |
| parseFrom | back to summary |
|---|---|
| public MessageType parseFrom(InputStream input) throws InvalidProtocolBufferException Implements com. Doc from com. Parse a message of Despite usually reading the entire input, this does not close the stream.
| |
| parsePartialDelimitedFrom | back to summary |
|---|---|
| public MessageType parsePartialDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialDelimitedFrom | back to summary |
|---|---|
| public MessageType parsePartialDelimitedFrom(InputStream input) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(CodedInputStream input) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(ByteString data) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(byte[] data) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |
| parsePartialFrom | back to summary |
|---|---|
| public MessageType parsePartialFrom(InputStream input) throws InvalidProtocolBufferException Implements com. Doc from com. Like
| |