public Reader parse(File file, Metadata metadata) throws IOException {
        @SuppressWarnings("deprecation") InputStream stream = TikaInputStream.get(file, metadata);
        return parse(stream, metadata);
    }
Parses the given file and returns the extracted text content.
<p>
Metadata information extracted from the document is returned in
the supplied metadata instance.

@param file     the file to be parsed
@param metadata where document's metadata will be populated
@return extracted text content
@throws IOException if the file can not be read or parsed
@see #parse(Path)
tika-core/src/main/java/org/apache/tika/Tika.java