| Constructor and Description |
|---|
MagicMatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubMatch(MagicMatch m)
add a submatch to this magic match
|
protected Object |
clone()
DOCUMENT ME!
|
boolean |
descriptionMatches(String desc)
determine if this match or any submatches has the description
|
long |
getBitmask()
get the bitmask that will be applied for this magic match
|
char |
getComparator()
get the comparator for this magic match
|
String |
getDescription()
get the description for this magic match
|
String |
getExtension()
get the extension for this magic match
|
int |
getLength()
get the length we are restricting the comparison to for this magic match
|
String |
getMimeType()
get the magic match for this magic match
|
int |
getOffset()
get the offset in the stream we are comparing to the test value for this magic match
|
Map<String,String> |
getProperties()
get the properties for this magic match
|
Collection<MagicMatch> |
getSubMatches()
get all submatches for this magic match
|
ByteBuffer |
getTest()
get the test value for this magic match
|
String |
getType()
get the type of match for this magic match
|
boolean |
mimeTypeMatches(String desc)
determine if this match or any submatches has the description
|
String |
print() |
void |
setBitmask(String value)
set the bitmask that will be applied for this magic match
|
void |
setComparator(String value)
set the comparator for this magic match
|
void |
setDescription(String value)
set the description for this magic match
|
void |
setExtension(String value)
set the extension for this magic match
|
void |
setLength(int value)
set the length we are restricting the comparison to for this magic match
|
void |
setMimeType(String value)
set the mime type for this magic match
|
void |
setOffset(int value)
set the offset in the stream we are comparing to the test value for this magic match
|
void |
setProperties(Map<String,String> properties)
set the properties for this magic match
|
void |
setSubMatches(Collection<MagicMatch> a)
set all submatches
|
void |
setTest(ByteBuffer value)
set the test value for thie magic match
|
void |
setType(String value)
set the type of match to perform for this magic match
|
public String print()
public String getMimeType()
public void setMimeType(String value)
value - DOCUMENT ME!public String getExtension()
public void setExtension(String value)
value - DOCUMENT ME!public String getDescription()
public void setDescription(String value)
value - DOCUMENT ME!public ByteBuffer getTest()
public void setTest(ByteBuffer value)
value - DOCUMENT ME!public int getOffset()
public void setOffset(int value)
value - DOCUMENT ME!public int getLength()
public void setLength(int value)
value - DOCUMENT ME!public String getType()
public void setType(String value)
value - DOCUMENT ME!public long getBitmask()
public void setBitmask(String value)
value - DOCUMENT ME!public char getComparator()
public void setComparator(String value)
value - DOCUMENT ME!public Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
properties - DOCUMENT ME!public void addSubMatch(MagicMatch m)
m - a magic matchpublic Collection<MagicMatch> getSubMatches()
public void setSubMatches(Collection<MagicMatch> a)
a - a collection of submatchespublic boolean descriptionMatches(String desc)
desc - DOCUMENT ME!public boolean mimeTypeMatches(String desc)
desc - DOCUMENT ME!protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - DOCUMENT ME!Copyright © 2019. All rights reserved.