| Constructor and Description |
|---|
MagicMatcher() |
| 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() |
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) |
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 MagicMatch getMatch()
public void setMatch(MagicMatch match)
match - DOCUMENT ME!public boolean isValid()
public void addSubMatcher(MagicMatcher m)
m - a magic matchpublic Collection<MagicMatcher> getSubMatchers()
public void setSubMatchers(Collection<MagicMatcher> a)
a - a collection of submatchespublic MagicMatch test(File f, boolean onlyMimeMatch) throws IOException
f - the file that should be used to test the matchonlyMimeMatch - DOCUMENT ME!IOException - DOCUMENT ME!public MagicMatch test(byte[] data, boolean onlyMimeMatch)
data - the data that should be used to test the matchonlyMimeMatch - DOCUMENT ME!public String[] getDetectorExtensions()
protected MagicMatcher clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - DOCUMENT ME!Copyright © 2019. All rights reserved.