Main entry point: parse RTF data from the input stream, and pass events based on the RTF content to the listener.