|
||||||||||
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. A number of methods are package protected because
this is generated by the MagicEntryParser
.
Method Summary | |
---|---|
int |
getLevel()
Return the "level" of the rule. |
int |
getStrength()
Get the strength of the rule. |
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 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 |