StringTextStream
A stream of text characters that can be processed sequentially. This stream maintains a current position (i.e., offset in the string) from which all reading operations begin. The stream is advanced by read
operations. The stream is not advanced by peek
operations.
Parameters
The source text for this stream.
Functions
Advances the position until a whitespace character is found (i.e., one of ' ', '\r', '\n', '\t').
Advances the position until a non-whitespace character is found (i.e., not one of ' ', '\r', '\n', '\t').
Determines if the next several characters in the stream match the given text without advancing the position.
Returns the next character in the stream and advances the position. Throws an exception if the end of the stream would be exceeded.
Returns contents of the stream up to and including the given text and advances the position. Throws an exception if the text is not encountered before the end of the stream.
Returns an XML name from the stream and advances the position. Throws an exception if unable to find a valid XML name start character. See https://www.w3.org/TR/xml/#NT-Name for name character rules.