|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.simplemagic.entries.MagicEntry
public class MagicEntry
Representation of a line of information from the magic (5) format.
Method Summary | |
---|---|
int |
getLevel()
Return the "level" of the rule. |
int |
getStrength()
Get the strength of the rule. |
static MagicEntry |
parseLine(MagicEntry previous,
String line,
ContentTypeUtil.ErrorCallBack errorCallBack)
Parse a line from the magic configuration file into an entry. |
ContentType |
processBytes(byte[] bytes)
Returns the content type associated with the bytes or null if it does not match. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static MagicEntry parseLine(MagicEntry previous, String line, ContentTypeUtil.ErrorCallBack errorCallBack)
public ContentType processBytes(byte[] bytes)
public int getLevel()
public int getStrength()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |