[
https://issues.apache.org/jira/browse/IMAGING-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840715#comment-16840715
]
Paul Austin commented on IMAGING-225:
-------------------------------------
[~garydgregory],
What I would do is add a private List<String> fileExtensions to the ImageParser
class, with a protected addFileExtension and setFileExtensions method to modify
the list. Then the getAcceptedExceptions would return a
Collections.unmodifiableList of the fileExtensions. Sub classes can then
register the extensions in the constructor.
If I get time I'll create a PR with the proposal.
Paul
> Make ImageParser.getAcceptedExtensions public
> ---------------------------------------------
>
> Key: IMAGING-225
> URL: https://issues.apache.org/jira/browse/IMAGING-225
> Project: Commons Imaging
> Issue Type: Improvement
> Components: imaging.*
> Affects Versions: 1.0-alpha1
> Reporter: Paul Austin
> Priority: Trivial
>
> Would it be possible to make ImageParser.getAcceptedExtensions public?
> This way filters can be created in a file selection dialog in a UI. Or for
> other purposes linking the ImageParser for the file extensions associated
> with that ImageParser.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)