Class CharacterUtils.CharacterBuffer

    • Constructor Summary

      Constructors 
      Constructor Description
      CharacterBuffer​(char[] buffer, int offset, int length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char[] getBuffer()
      Returns the internal buffer
      int getLength()
      Return the length of the data in the internal buffer starting at getOffset()
      int getOffset()
      Returns the data offset in the internal buffer.
      void reset()
      Resets the CharacterBuffer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • buffer

        private final char[] buffer
      • offset

        private int offset
      • length

        private int length
      • lastTrailingHighSurrogate

        char lastTrailingHighSurrogate
    • Constructor Detail

      • CharacterBuffer

        CharacterBuffer​(char[] buffer,
                        int offset,
                        int length)
    • Method Detail

      • getBuffer

        public char[] getBuffer()
        Returns the internal buffer
        Returns:
        the buffer
      • getOffset

        public int getOffset()
        Returns the data offset in the internal buffer.
        Returns:
        the offset
      • getLength

        public int getLength()
        Return the length of the data in the internal buffer starting at getOffset()
        Returns:
        the length
      • reset

        public void reset()
        Resets the CharacterBuffer. All internals are reset to its default values.