public Reader parse(InputStream stream) throws IOException {
        return parse(stream, new Metadata());
    }
Parses the given document and returns the extracted text content.
<p>
The returned reader will be responsible for closing the given stream.
The stream and any associated resources will be closed at or before
the time when the {@link Reader#close()} method is called.

@param stream the document to be parsed
@return extracted text content
@throws IOException if the document can not be read or parsed
tika-core/src/main/java/org/apache/tika/Tika.java