You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Wooten (JIRA)" <ji...@apache.org> on 2009/08/07 04:43:14 UTC
[jira] Created: (IO-210) Create MagicNumberFileFilter
Create MagicNumberFileFilter
----------------------------
Key: IO-210
URL: https://issues.apache.org/jira/browse/IO-210
Project: Commons IO
Issue Type: New Feature
Components: Filters
Reporter: Michael Wooten
Priority: Minor
Add a MagicNumberFileFilter implementation of IOFileFilter that is capable of accepting files based on a "magic number", which is a set of specific bytes in the file. The filter should be configurable as to use magic numbers supplied as both Strings and byte arrays, and to accept an offset within the file at which to look for the magic number.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (IO-210) Create MagicNumberFileFilter
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved IO-210.
---------------------
Resolution: Fixed
Thanks for the patch.
URL: http://svn.apache.org/viewvc?rev=919682&view=rev
Log:
IO-210 Create MagicNumberFileFilter
Applied patch, with following fixes:
- remove additional null checks in FileFilterUtils static methods; leave the checks to the ctors
- close RandomAcessFile in MagicNumberFileFilter.accept()
- close streams in test cases
- Javadoc fix (wrap < in {@code})
Added:
commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/MagicNumberFileFilter.java (with props)
Modified:
commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/FileFilterUtils.java
commons/proper/io/trunk/src/test/org/apache/commons/io/filefilter/FileFilterTestCase.java
> Create MagicNumberFileFilter
> ----------------------------
>
> Key: IO-210
> URL: https://issues.apache.org/jira/browse/IO-210
> Project: Commons IO
> Issue Type: New Feature
> Components: Filters
> Affects Versions: 2.0
> Reporter: Michael Wooten
> Priority: Minor
> Fix For: 2.0
>
> Attachments: commons-io-magic_number_file_filter.patch
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Add a MagicNumberFileFilter implementation of IOFileFilter that is capable of accepting files based on a "magic number", which is a set of specific bytes in the file. The filter should be configurable as to use magic numbers supplied as both Strings and byte arrays, and to accept an offset within the file at which to look for the magic number.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IO-210) Create MagicNumberFileFilter
Posted by "Michael Wooten (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Wooten updated IO-210:
------------------------------
Attachment: commons-io-magic_number_file_filter.patch
A patch that includes the MagicNumberFileFilter class, test cases for the class, and extensions to the FileFilterUtils class to support the new file filter.
> Create MagicNumberFileFilter
> ----------------------------
>
> Key: IO-210
> URL: https://issues.apache.org/jira/browse/IO-210
> Project: Commons IO
> Issue Type: New Feature
> Components: Filters
> Reporter: Michael Wooten
> Priority: Minor
> Attachments: commons-io-magic_number_file_filter.patch
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Add a MagicNumberFileFilter implementation of IOFileFilter that is capable of accepting files based on a "magic number", which is a set of specific bytes in the file. The filter should be configurable as to use magic numbers supplied as both Strings and byte arrays, and to accept an offset within the file at which to look for the magic number.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IO-210) Create MagicNumberFileFilter
Posted by "Michael Wooten (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Wooten updated IO-210:
------------------------------
Fix Version/s: 2.0
Affects Version/s: 2.0
> Create MagicNumberFileFilter
> ----------------------------
>
> Key: IO-210
> URL: https://issues.apache.org/jira/browse/IO-210
> Project: Commons IO
> Issue Type: New Feature
> Components: Filters
> Affects Versions: 2.0
> Reporter: Michael Wooten
> Priority: Minor
> Fix For: 2.0
>
> Attachments: commons-io-magic_number_file_filter.patch
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Add a MagicNumberFileFilter implementation of IOFileFilter that is capable of accepting files based on a "magic number", which is a set of specific bytes in the file. The filter should be configurable as to use magic numbers supplied as both Strings and byte arrays, and to accept an offset within the file at which to look for the magic number.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.