Class AbstractUtf8Array

    • Constructor Detail

      • AbstractUtf8Array

        public AbstractUtf8Array()
    • Method Detail

      • writeTo

        public final void writeTo​(ByteBuffer target)
        This will write the utf8 sequence to the given target.
      • getByte

        public byte getByte​(int index)
        This will return the byte at the given position.
      • getByteLength

        public abstract int getByteLength()
        Returns:
        Length in bytes of the utf8 sequence.
      • wrap

        public ByteBuffer wrap()
        Wraps the utf8 sequence in a ByteBuffer
        Returns:
        The wrapping buffer.
      • getBytes

        protected abstract byte[] getBytes()
        Returns:
        The backing byte array.
      • isEmpty

        public boolean isEmpty()
      • getByteOffset

        protected abstract int getByteOffset()
        Returns:
        The offset in the backing array where the utf8 sequence starts.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Will convert the utf8 sequence to a Java string
        Overrides:
        toString in class Object
        Returns:
        The converted Java String
      • ascii7BitLowerCase

        public Utf8Array ascii7BitLowerCase()