Interface Parser<MessageType>

All Known Implementing Classes:
AbstractParser, GeneratedMessageLite.DefaultInstanceBasedParser, UnknownFieldSet.Parser

public interface Parser<MessageType>
Abstract interface for parsing Protocol Messages.

The implementation should be stateless and thread-safe.

All methods may throw InvalidProtocolBufferException. In the event of invalid data, like an encoding error, the cause of the thrown exception will be null. However, if an I/O problem occurs, an exception is thrown with an IOException cause.