Copy data in string to a local char array
This is the preferred constructor for strings as no data is copied
@uml @override
@uml @override
@uml @override
@uml @override
@uml @override
mark/release do nothing; we have entire buffer @uml @override
@uml @override
Reset the stream so that it's in the same state it was when the object was created *except* the data array is not touched.
consume() ahead until p==index; can't just set p=index as we must update line and charPositionInLine. If we seek backwards, just set p @uml @override
@uml @override
@uml @override
The data being scanned
How many characters are actually in the buffer
What is name or source of this char stream?
0..n-1 index into string of next char
This method returns the text for a range of characters within this input stream. This method is guaranteed to not throw an exception if the specified {@code interval} lies entirely within a marked range. For more information about marked ranges, see {@link IntStream#mark}.
Vacuum all input from a {@link Reader}/{@link InputStream} and then treat it like a {@code char[]} buffer. Can also pass in a {@link String} or {@code char[]} to use.
<p>If you need encoding, pass in stream/reader with correct encoding.</p>