-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
If I use this library to parse text that is either RTF or plain text, and the plain text uses curly braces that are not closed, then an java.lang.IllegalStateException: Unmatched brace exception is thrown.
String RTFText = "Some plan text with { unclosed ] curly brace";
String PlainText = "";
try {
InputStream inputStream = new ByteArrayInputStream(RTFText.getBytes("UTF-8"));
StringTextConverter converter = new StringTextConverter();
converter.convert(new RtfStreamSource(inputStream));
PlainText = converter.getText();
} catch (IOException e) {
System.out.println("Error: " + e.toString());
}
System.out.println("Result: [" + PlainText + "]");
Metadata
Metadata
Assignees
Labels
No labels