protected static class GeneratedMessageLite.DefaultInstanceBasedParser<T> extends AbstractParser<T>
Type Parameter |
|
---|---|
Name | Description |
T |
Constructors
DefaultInstanceBasedParser(T defaultInstance)
public DefaultInstanceBasedParser(T defaultInstance)
Parameter | |
---|---|
Name | Description |
defaultInstance |
T |
Methods
parsePartialFrom(byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry)
public T parsePartialFrom(byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry)
Like #parseFrom(ByteString, ExtensionRegistryLite), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned.
Parameters | |
---|---|
Name | Description |
input |
byte[] |
offset |
int |
length |
int |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
T |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parsePartialFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public T parsePartialFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
T |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |