Example usage for Java org.apache.commons.io.filefilter MagicNumberFileFilter fields, constructors, methods, implement or subclass
The text is from its open source code.
MagicNumberFileFilter(byte[] magicNumber) Constructs a new MagicNumberFileFilter and associates it with the magic number to test for in files. | |
MagicNumberFileFilter(String magicNumber) Constructs a new MagicNumberFileFilter and associates it with the magic number to test for in files. |
boolean | accept(File file) Accepts the provided file if the file contains the file filter's magic number at the specified offset. |