| Package | Description |
|---|---|
| net.sf.jmimemagic |
net.sf.jmimemagic.detectors
|
| Modifier and Type | Method and Description |
|---|---|
static MagicMatch |
Magic.getMagicMatch(byte[] data)
get a match from a stream of data
|
static MagicMatch |
Magic.getMagicMatch(byte[] data,
boolean onlyMimeMatch)
get a match from a stream of data
|
static MagicMatch |
Magic.getMagicMatch(File file,
boolean extensionHints)
get a match from a file
|
static MagicMatch |
Magic.getMagicMatch(File file,
boolean extensionHints,
boolean onlyMimeMatch)
get a match from a file
|
static Collection<MagicMatcher> |
Magic.getMatchers()
return the parsed MagicMatch objects that were created from the magic.xml
definitions
|
void |
MagicParser.initialize()
parse the xml file and create our MagicMatcher object list
|
static void |
Magic.initialize()
create a parser and initialize it
|
static void |
Magic.printMagicFile(PrintStream stream)
print the contents of a magic file
|
Copyright © 2017. All rights reserved.