|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jmimemagic.MagicMatcher
This class represents a single match test
| Constructor Summary | |
MagicMatcher()
constructor |
|
| Method Summary | |
void |
addSubMatcher(MagicMatcher m)
add a submatch to this magic match |
protected java.lang.Object |
clone()
DOCUMENT ME! |
java.lang.String[] |
getDetectorExtensions()
Get the extensions for the underlying detectory |
MagicMatch |
getMatch()
DOCUMENT ME! |
java.util.Collection |
getSubMatchers()
get all submatches for this magic match |
boolean |
isValid()
test to see if everything is in order for this match |
void |
setMatch(MagicMatch match)
DOCUMENT ME! |
void |
setSubMatchers(java.util.Collection a)
set all submatches |
MagicMatch |
test(byte[] data,
boolean onlyMimeMatch)
test to see if this match or any submatches match |
MagicMatch |
test(java.io.File f,
boolean onlyMimeMatch)
test to see if this match or any submatches match |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MagicMatcher()
| Method Detail |
public void setMatch(MagicMatch match)
match - DOCUMENT ME!public MagicMatch getMatch()
public boolean isValid()
public void addSubMatcher(MagicMatcher m)
m - a magic matchpublic void setSubMatchers(java.util.Collection a)
a - a collection of submatchespublic java.util.Collection getSubMatchers()
public MagicMatch test(java.io.File f,
boolean onlyMimeMatch)
throws java.io.IOException,
UnsupportedTypeException
f - the file that should be used to test the matchonlyMimeMatch - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
UnsupportedTypeException - DOCUMENT ME!
public MagicMatch test(byte[] data,
boolean onlyMimeMatch)
throws java.io.IOException,
UnsupportedTypeException
data - the data that should be used to test the matchonlyMimeMatch - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
UnsupportedTypeException - DOCUMENT ME!public java.lang.String[] getDetectorExtensions()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - DOCUMENT ME!
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||