@Deprecated
    public static TikaInputStream get(File file, Metadata metadata) throws FileNotFoundException {
        if (StringUtils.isBlank(metadata.get(TikaCoreProperties.RESOURCE_NAME_KEY))) {
            metadata.set(TikaCoreProperties.RESOURCE_NAME_KEY, file.getName());
        }
        metadata.set(Metadata.CONTENT_LENGTH, Long.toString(file.length()));
        return new TikaInputStream(file);
    }
Creates a TikaInputStream from the given file. The file name and
length are stored as input metadata in the given metadata instance.
<p>
Note that you must always explicitly close the returned stream to
prevent leaking open file handles.

@param file     input file
@param metadata metadata instance
@return a TikaInputStream instance
@throws FileNotFoundException if the file does not exist
                              or cannot be opened for reading
@deprecated use {@link #get(Path, Metadata)}. In Tika 2.0,
this will be removed or modified to throw an IOException.
tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java