You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Yi EungJun (JIRA)" <ji...@apache.org> on 2014/05/30 03:11:02 UTC

[jira] [Created] (TIKA-1314) An inappropriate comment of CharsetDetector.detect()

Yi EungJun created TIKA-1314:
--------------------------------

             Summary: An inappropriate comment of CharsetDetector.detect()
                 Key: TIKA-1314
                 URL: https://issues.apache.org/jira/browse/TIKA-1314
             Project: Tika
          Issue Type: Bug
          Components: parser
    Affects Versions: 1.5
            Reporter: Yi EungJun
            Priority: Minor


According to the javadoc of CharsetDetector.detect(), it raises an
exception if no charset appears to match the data:

     * Raise an exception if
     *  <ul>
     *    <li>no charsets appear to match the input data.</li>
     *    <li>no input text has been provided</li>
     *  </ul>

But it seems to me that in such cases the method returns null but does not raise any exception.



--
This message was sent by Atlassian JIRA
(v6.2#6252)