| Constructor and Description |
|---|
MagicMatcher()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubMatcher(MagicMatcher m)
add a submatch to this magic match
|
protected MagicMatcher |
clone()
DOCUMENT ME!
|
String[] |
getDetectorExtensions()
Get the extensions for the underlying detectory
|
MagicMatch |
getMatch()
DOCUMENT ME!
|
Collection<MagicMatcher> |
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(Collection<MagicMatcher> a)
set all submatches
|
MagicMatch |
test(byte[] data,
boolean onlyMimeMatch)
test to see if this match or any submatches match
|
MagicMatch |
test(File f,
boolean onlyMimeMatch)
test to see if this match or any submatches match
|
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(Collection<MagicMatcher> a)
a - a collection of submatchespublic Collection<MagicMatcher> getSubMatchers()
public MagicMatch test(File f, boolean onlyMimeMatch) throws IOException, UnsupportedTypeException
f - the file that should be used to test the matchonlyMimeMatch - DOCUMENT ME!IOException - DOCUMENT ME!UnsupportedTypeException - DOCUMENT ME!public MagicMatch test(byte[] data, boolean onlyMimeMatch) throws IOException, UnsupportedTypeException
data - the data that should be used to test the matchonlyMimeMatch - DOCUMENT ME!IOException - DOCUMENT ME!UnsupportedTypeException - DOCUMENT ME!public String[] getDetectorExtensions()
protected MagicMatcher clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - DOCUMENT ME!Copyright © 2017. All rights reserved.