|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
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 |
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.
MagicFile
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||