4088 fix exception messages to reflect current name of TextFileExtractor class

This commit is contained in:
William Schaefer 2018-08-01 17:38:04 -04:00
parent 8a36265b8b
commit 715d34a5d1

View File

@ -59,11 +59,11 @@ final class TextFileExtractor extends ContentTextExtractor {
try { try {
detector.setText(stream); detector.setText(stream);
} catch (IOException ex) { } catch (IOException ex) {
throw new TextExtractorException("Unable to get string from detected text in UnicodeTextExtractor", ex); throw new TextExtractorException("Unable to get string from detected text in TextFileExtractor", ex);
} }
CharsetMatch match = detector.detect(); CharsetMatch match = detector.detect();
if (match.getConfidence() < MIN_MATCH_CONFIDENCE) { if (match.getConfidence() < MIN_MATCH_CONFIDENCE) {
throw new TextExtractorException("Text does not match any character set with a high enough confidence for UnicodeTextExtractor"); throw new TextExtractorException("Text does not match any character set with a high enough confidence for TextFileExtractor");
} }
return match.getReader(); return match.getReader();