Modifier and Type | Field and Description |
---|---|
private Clause |
clause |
private int |
priority |
private java.lang.String |
string |
private MimeType |
type |
Constructor and Description |
---|
Magic(MimeType type,
int priority,
Clause clause) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Magic o) |
boolean |
equals(java.lang.Object o) |
boolean |
eval(byte[] data)
Evaluates this clause with the specified chunk of data.
|
(package private) int |
getPriority() |
(package private) MimeType |
getType() |
int |
hashCode() |
int |
size()
Returns the size of this clause.
|
java.lang.String |
toString() |
private final MimeType type
private final int priority
private final Clause clause
private final java.lang.String string
MimeType getType()
int getPriority()
public boolean eval(byte[] data)
Clause
public int size()
Clause
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(Magic o)
compareTo
in interface java.lang.Comparable<Magic>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object