public int compareTo(Magic o) {
        int diff = o.priority - priority;
        if (diff == 0) {
            diff = o.size() - size();
        }
        if (diff == 0) {
            diff = o.type.compareTo(type);
        }
        if (diff == 0) {
            diff = o.string.compareTo(string);
        }
        return diff;
    }
Defines a magic for a MimeType. A magic is made of one or several
MagicClause.
tika-core/src/main/java/org/apache/tika/mime/Magic.java