You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Claude Warren (JIRA)" <ji...@apache.org> on 2012/09/02 16:18:07 UTC

[jira] [Updated] (JENA-312) Expose "default" file extensions in Lang enum.

     [ https://issues.apache.org/jira/browse/JENA-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claude Warren updated JENA-312:
-------------------------------

    Attachment: jena-arq-JENA-312.patch

Patch that adds 
Lang.getDefaultFileExtension()
Lang.getFileExtensions();

Adds file extension array to object
modifies guess() to take advantage of the extension array.

Also added test class.

                
> Expose "default" file extensions in Lang enum.
> ----------------------------------------------
>
>                 Key: JENA-312
>                 URL: https://issues.apache.org/jira/browse/JENA-312
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: RIOT
>            Reporter: Claude Warren
>         Attachments: jena-arq-JENA-312.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Currently the Lang enum has a method guess() that will guess the language type from a file name.  It does this by maintaining a list of possible extensions for each Lang type.  I am looking for a method to return the first extension listed in the list for a given Lang to assist in producing a file name that will be parsed correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira