public int getLength() {
        return this.patternLength;
    }
@param input    document input stream, or <code>null</code>
@param metadata ignored
tika-core/src/main/java/org/apache/tika/detect/MagicDetector.java