| java.lang.Object org.mmbase.util.magicfile.MagicParser
MagicParser | public class MagicParser implements DetectorProvider(Code) | | 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.
version: $Id: MagicParser.java,v 1.12 2007/02/24 21:57:50 nklasens Exp $ |
DEFAULT_MAGIC_FILE | final public static String DEFAULT_MAGIC_FILE(Code) | | the default files used to create the Detectors
DEFAULT_MAGIC_FILE = "/etc/mime-magic"
|
MagicParser | public MagicParser()(Code) | | |
MagicParser | public MagicParser(String fileName)(Code) | | Construct a new MagicParser with configuration file
since: MMBase-1.7 |
nextNonWhiteSpace | protected int nextNonWhiteSpace(String s, int startIndex)(Code) | | |
nextWhiteSpace | protected int nextWhiteSpace(String s, int startIndex)(Code) | | |
toXML | public boolean toXML(File f) throws IOException(Code) | | Write the current datastructure to an XML file
|
|
|