public String toString() {
        // Needs to be unique, as these get compared.
        return "Magic Detection for " + type + " looking for " + pattern.length + " bytes = " +
                Arrays.toString(this.pattern) + " mask = " + Arrays.toString(this.mask);
    }
Returns a string representation of the Detection Rule.
Should sort nicely by type and details, as we sometimes
compare these.
tika-core/src/main/java/org/apache/tika/detect/MagicDetector.java