private void multiThreadedStreamCopy(final InputStream inputStream,
                                         final OutputStream outputStream) {
        new Thread(() -> {
            try {
                IOUtils.copy(inputStream, outputStream);
            } catch (IOException e) {
                System.out.println("ERROR: " + e.getMessage());
            }
        }).start();
    }
Creates a new thread for copying a given input stream to a given output stream.

@param inputStream  the source input stream
@param outputStream the target output stream
tika-core/src/main/java/org/apache/tika/embedder/ExternalEmbedder.java