[ 
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.

Reply via email to