Class ImmutableInputBuffer

    • Constructor Detail

      • ImmutableInputBuffer

        public ImmutableInputBuffer​(char[] buffer)
    • Method Detail

      • charAt

        public char charAt​(int i)
        Specified by:
        charAt in interface InputBuffer
      • extractLine

        public String extractLine​(int lineNumber)
        Description copied from interface: InputBuffer
        Returns content of a line for a given line number. Numbering of lines starts from 1.
        Specified by:
        extractLine in interface InputBuffer
      • getLineCount

        public int getLineCount()
        Description copied from interface: InputBuffer
        Returns number of lines, which is always equal to number of line terminators plus 1.
        Specified by:
        getLineCount in interface InputBuffer