Close both the input and output of the token stream
Mark the input as ended and forbid additional pushes
Flush the stream, causing it to process all pending text
Push a string of text into the token stream
Close both the input and output of the token stream