[ 
https://issues.apache.org/jira/browse/TIKA-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327909#comment-15327909
 ] 

Tim Allison commented on TIKA-1986:
-----------------------------------

bq.Do we have use cases where we need to set multiple settings and then 
initialize?
We do in PDFParser...I now remember.

{code}
        boolean checkExtractAccessPermission = 
getBooleanProp(props.getProperty("checkExtractAccessPermission"), false);
        boolean allowExtractionForAccessibility = 
getBooleanProp(props.getProperty("allowExtractionForAccessibility"), true);

        if (checkExtractAccessPermission == false) {
            //silently ignore the crazy configuration of 
checkExtractAccessPermission = false,
            //but allowExtractionForAccessibility=false
            accessChecker = new AccessChecker();
        } else {
            accessChecker = new AccessChecker(allowExtractionForAccessibility);
        }
{code}
I think we could work around this with careful setters.

> support parser parameters with type (int, double, etc) in configuration XML 
> file
> --------------------------------------------------------------------------------
>
>                 Key: TIKA-1986
>                 URL: https://issues.apache.org/jira/browse/TIKA-1986
>             Project: Tika
>          Issue Type: Sub-task
>          Components: config
>            Reporter: Thamme Gowda
>             Fix For: 1.14
>
>
> Tika Configuration should be enhanced to support for basic types like int, 
> double, boolean, url, file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to