jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1831) RTFTextExtractor not extracting text from RTF file
Date Thu, 23 Oct 2008 08:22:44 GMT

     [ https://issues.apache.org/jira/browse/JCR-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Marcel Reutegger resolved JCR-1831.

    Resolution: Cannot Reproduce

Works for me. See also test case added in JCR-1833.

> RTFTextExtractor not extracting text from RTF file
> --------------------------------------------------
>                 Key: JCR-1831
>                 URL: https://issues.apache.org/jira/browse/JCR-1831
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-text-extractors
>    Affects Versions: 1.4
>         Environment: Reproduced in Linux
>            Reporter: hector rovira
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message