Nicolas Gavalda created TIKA-1248:
-------------------------------------

             Summary: CharsetDetector.getReader method doesn't support 
empty/null declaredEncoding
                 Key: TIKA-1248
                 URL: https://issues.apache.org/jira/browse/TIKA-1248
             Project: Tika
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Nicolas Gavalda
            Priority: Minor


The javadoc of the CharsetDetector.getReader method states that the 
declaredEncoding parameter can be null or empty. However, providing such values 
throws an exception (IllegalArgumentException or IllegalCharsetNameException).
Either the javadoc should be updated to match this behavior, or the bug should 
be fixed (even if the method seems not to be used internally).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to