private String detectTika(TikaInputStream tis) {
        try {
            return TIKA.detect(tis);
        } catch (IOException e) {
            return DETECT_EXCEPTION;
        }
    }
This class profiles actual files as opposed to extracts e.g. {@link ExtractProfiler}.
This does _not_ parse files, but does run file type identification and digests the
raw bytes.
<p>
If the 'file' command is available on the command line, this will also run the
FileCommandDetector.
tika-eval/tika-eval-app/src/main/java/org/apache/tika/eval/app/FileProfiler.java