Class AbstractBufferContext

    • Constructor Detail

    • Method Detail

      • readByte

        public byte readByte()
        Description copied from interface: ReadBuffer
        reads a byte from the buffer.
        Specified by:
        readByte in interface ReadBuffer
        Returns:
        the byte
      • readBytes

        public void readBytes​(byte[] bytes)
        Description copied from interface: ReadBuffer
        reads an array of bytes from the buffer. The length of the array that is passed as a parameter specifies the number of bytes that are to be read. The passed bytes buffer parameter is directly filled.
        Specified by:
        readBytes in interface ReadBuffer
        Parameters:
        bytes - the byte array to read the bytes into.
      • readInt

        public int readInt()
        Description copied from interface: ReadBuffer
        reads an int from the buffer.
        Specified by:
        readInt in interface ReadBuffer
        Returns:
        the int
      • readLong

        public long readLong()
        Description copied from interface: ReadBuffer
        reads a long from the buffer.
        Specified by:
        readLong in interface ReadBuffer
        Returns:
        the long
      • offset

        public int offset()
        Description copied from interface: ReadBuffer
        returns the current offset in the buffer
        Specified by:
        offset in interface ReadBuffer
        Returns:
        the offset
      • seek

        public void seek​(int offset)
        Description copied from interface: ReadBuffer
        positions the read pointer at the specified position
        Specified by:
        seek in interface ReadBuffer
        Parameters:
        offset - the desired position in the buffer
      • isLegacyHandlerVersion

        public boolean isLegacyHandlerVersion()