@Override
    public void close() throws IOException {
        reader.close();
    }
Closes the read end of the pipe. If the parsing thread is still
running, next write to the pipe will fail and cause the thread
to stop. Thus there is no need to explicitly terminate the thread.

@throws IOException if the pipe can not be closed
tika-core/src/main/java/org/apache/tika/parser/ParsingReader.java