Java org.apache.commons.io.filefilter MagicNumberFileFilter fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.io.filefilter MagicNumberFileFilter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.io.filefilter MagicNumberFileFilter.

The text is from its open source code.

Constructor

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.

Method

booleanaccept(File file)

Accepts the provided file if the file contains the file filter's magic number at the specified offset.