You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 + "]");
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: