joniles / rtfparserkit

Primary repository for RTF Parser Kit library
Apache License 2.0
104 stars 42 forks source link

parsing non-RTF content should throw exception #8

Open stippi opened 9 years ago

stippi commented 9 years ago

When parsing content that is not RTF, and when the content by chance contains no '{' characters, the low level parser will keep adding all chars to its character sequence cache. In the end, no hook function of the listener will be called and it looks the same to the upper layers as if an empty but otherwise valid RTF document was parsed. Any suggestions on how to best fix this? I can see multiple ways to approach this.