Interface TagReader

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void checkLastTagWas​(int tag)
      Checks that the previously read tag is the last tag of a message or group.
      byte[] fullBufferArray()
      Returns the full buffer array allowing an alternative protobuf parser to be used in marshallers, and at the root message level.
      InputStream fullBufferInputStream()
      Returns the input stream allowing an alternative protobuf parser to be used in marshallers, and at the root message level.
      boolean isAtEnd()
      Returns true if we have reached the end of input or the limit set with pushLimit.
      boolean isInputStream()  
      void popLimit​(int oldLimit)
      Returns back to a previous limit returned by pushLimit.
      int pushLimit​(int limit)
      Sets a limit (based on the length of the length delimited value) when entering an embedded message.
      boolean readBool()
      Read a bool value from the stream.
      byte[] readByteArray()
      Reads a bytes value as a byte array.
      ByteBuffer readByteBuffer()
      Reads a bytes value as a ByteBuffer.
      double readDouble()
      Read a double value from the stream.
      int readEnum()
      Reads an enum value from the stream as an integer value.
      int readFixed32()
      Read a fixed32 value from the stream.
      long readFixed64()
      Read a fixed64 value from the stream.
      float readFloat()
      Read a float value from the stream.
      int readInt32()
      Read a int32 value from the stream.
      long readInt64()
      Read a int64 value from the stream.
      int readSFixed32()
      Read a sfixed32 value from the stream.
      long readSFixed64()
      Read a sfixed64 value from the stream.
      int readSInt32()
      Read a sint32 value from the stream.
      long readSInt64()
      Read a sint64 value from the stream.
      String readString()
      Reads a string value.
      int readTag()
      Reads a tag and returns it or returns 0 in case the input data is finished.
      int readUInt32()
      Read a uint32 value from the stream.
      long readUInt64()
      Read a uint64 value from the stream.
      boolean skipField​(int tag)
      Skips a tag+value pair and returns true for normal tags but if the tag is an end group tag it returns false.