[
https://issues.apache.org/jira/browse/TIKA-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15881246#comment-15881246
]
Tim Allison commented on TIKA-2273:
-----------------------------------
[~bobpaulin]. Help! I've broken two tests in tika-bundle. My goal was to
allow configuration of EncodingDetectors used by several parsers via
AutoDetectReader. All was going well, I thought, but in the bundle, it looks,
from the debugger, like there aren't any parsers [parsers.size() == 0] actually
going through TikaConfig to be updated with:
{noformat}
if (encodingDetector != null) {
for (Parser p : parsers) {
if (p instanceof AbstractEncodingDetectorParser) {
((AbstractEncodingDetectorParser)p).setEncodingDetector(encodingDetector);
}
}
}
{noformat}
in DefaultParser's getDefaultParsers(ServiceLoader, EncodingDetector)
Are the Parsers getting built outside of this code in the bundle somehow?
> Enable configuration of EncodingDetectors via TikaConfig
> --------------------------------------------------------
>
> Key: TIKA-2273
> URL: https://issues.apache.org/jira/browse/TIKA-2273
> Project: Tika
> Issue Type: Improvement
> Reporter: Tim Allison
> Priority: Minor
> Attachments: TIKA_2273_first_draft.patch
>
>
> It would be nice to allow easier configuration of encoding detectors. It
> should be straightforward to follow the example of detectors...(famous last
> words).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)