Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
1.4
-
None
-
None
-
Reproduced in Linux
Description
This extractor is not working. I debugged it and found that the doc.getLength() is zero and doc.getText(...) is returning an empty string:
RTFEditorKit rek = new RTFEditorKit();
DefaultStyledDocument doc = new DefaultStyledDocument();
rek.read(stream, doc, 0);
String text = doc.getText(0, doc.getLength());
return new StringReader(text);
There are no exceptions thrown, or warnings in the log.
This code has dependencies on javax.swing.text classes, and I'm not familiar with that API, so I have not been able to figure out a quick fix or workaround.