Package org.mmbase.util.magicfile

This package contains the classes needed by org.mmbase.util.MagicFile.

See:
          Description

Interface Summary
DetectorProvider DetectorProvider classes are meant to provide a list of Detectors, which can be used by MagicFile.
 

Class Summary
Detector A Detector stores one entry from the magic.xml file, and contains the functionality to determins if a certain byte[] satisfies it.
MagicParser This Parser translates the configuration file of UNIX's file to a list of Detectors (and to a magic.xml) Perhaps it's easier to rewrite this stuff to perl or something like that.
MagicXMLReader Reads /magic.xml
 

Package org.mmbase.util.magicfile Description

This package contains the classes needed by org.mmbase.util.MagicFile. A complete package is dedicated to this because it is quite a lot of code to put in one file.

The core class is `Detector'. MagicXMLReader creates the Detectors using an XML configuration file 'magic.xml'. 'MagicParser' contains the functions to generate a magic.xml from a UNIX 'file' file.

See Also:
MagicFile


MMBase build 1.7.4.20050922