MagicFile.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 an input stream (
MagicFile.getMimeType(InputStream)) (or a file MagicFile.getMimeType(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.
|
| ZipDetector |
A detector which can match on zipfiles.
|
| Exception | Description |
|---|
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.MagicFileMMBase2 Utils 2.0.0 - 2019-08-08T23:20