Input Streams
If you like to stream your document from another source than files, strings or byte data, you can subclass InputStream and implement your own streaming class.
Your subclass must use the InputStream::Type::Custom type and implement the InputStream::atEnd() and InputStream::readCharOrThrow() methods.
You code must read one unicode character at a time and return it. If there is any problem, the method InputStream::readCharOrThrow() must throw an exception using the Error class.