See: Description
| Interface | Description |
|---|---|
| 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 | Description |
|---|---|
| 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
|
| XmlDetector |
A detector which can match on XML namespaces, publicId.
|
| Exception | 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.
MagicFileMMBase 1.9-SNAPSHOT - ${javadoctimestamp}