Claude Warren created TIKA-4505:
-----------------------------------
Summary: CharsetDetector.getReader returns null when an exception
documented
Key: TIKA-4505
URL: https://issues.apache.org/jira/browse/TIKA-4505
Project: Tika
Issue Type: Bug
Components: documentation
Affects Versions: 2.9.2
Reporter: Claude Warren
The CharsetDetector.getReader() javadoc states that it will "Raise an exception
if no charsets appear to match the input data."
However, if CharsetDetector.detect() returns null, null is returned from the
method.
In addition, if an IOException occurs it is caught and null is returned from
the method.
The documentation does not reference null as a possible return value.
This is the underlying cause of an issue in RAT.
https://issues.apache.org/jira/browse/RAT-494 where a document is mentioned.
I have requested access to the document in question, if I get access and have
permission to distribute the file I will attach it here if you wish.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)