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)

Reply via email to