Package org.noggit

Class CharArr

    • Field Detail

      • buf

        protected char[] buf
      • start

        protected int start
      • end

        protected int end
    • Constructor Detail

      • CharArr

        public CharArr()
      • CharArr

        public CharArr​(int size)
      • CharArr

        public CharArr​(char[] arr,
                       int start,
                       int end)
    • Method Detail

      • setStart

        public void setStart​(int start)
      • setEnd

        public void setEnd​(int end)
      • set

        public void set​(char[] arr,
                        int start,
                        int end)
      • getArray

        public char[] getArray()
      • getStart

        public int getStart()
      • getEnd

        public int getEnd()
      • size

        public int size()
      • capacity

        public int capacity()
        The capacity of the buffer when empty (getArray().size())
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface CharSequence
      • read

        public int read​(char[] cbuf,
                        int off,
                        int len)
      • unsafeWrite

        public void unsafeWrite​(char b)
      • unsafeWrite

        public void unsafeWrite​(int b)
      • unsafeWrite

        public void unsafeWrite​(char[] b,
                                int off,
                                int len)
      • resize

        protected void resize​(int len)
      • reserve

        public void reserve​(int num)
      • write

        public void write​(char b)
      • write

        public final void write​(int b)
      • write

        public final void write​(char[] b)
      • write

        public void write​(char[] b,
                          int off,
                          int len)
      • write

        public final void write​(CharArr arr)
      • write

        public final void write​(String s)
      • write

        public void write​(String s,
                          int stringOffset,
                          int len)
      • flush

        public void flush()
      • reset

        public final void reset()
      • close

        public void close()
      • toCharArray

        public char[] toCharArray()