@Override
        public void process(InputStream stream, OutputStream output, Metadata metadata) throws Exception {
            PrintWriter writer = new PrintWriter(getOutputWriter(output, encoding));
            writer.println(detector
                    .detect(stream, metadata)
                    .toString());
            writer.flush();
        }
Output character encoding, or <code>null</code> for platform default
tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java