Package org.mmbase.util.magicfile

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

See:
          Description

Interface Summary
Detector A Detector stores one entry from the magic.xml file, and contains the functionality to determines if a certain byte[] satisfies it.
DetectorProvider DetectorProvider classes are meant to provide a list of Detectors, which can be used by MagicFile.
 

Class Summary
AbstractDetector  
BasicDetector A Detector stores one entry from the magic.xml file, and contains the functionality to determines if a certain byte[] satisfies it.
MagicFile Tries to determine the mime-type of a byte array (or a file).
MagicParser This Parser translates the configuration file of UNIX's file to a list of Detectors (and to a magic.xml)
MagicXMLReader Reads /magic.xml
XmlDetector A detector which can match on XML namespaces, publicId.
 

Exception Summary
 

Package org.mmbase.util.magicfile Description

This package contains the classes needed by org.mmbase.util.magicfile.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 2.0-SNAPSHOT - null