public static TikaInputStream get(InputStreamFactory factory) throws IOException {
        return get(factory, new TemporaryResources());
    }
Creates a TikaInputStream from a Factory which can create
fresh {@link InputStream}s for the same resource multiple times.
<p>This is typically desired when working with {@link Parser}s that
need to re-read the stream multiple times, where other forms
of buffering (eg File) are slower than just getting a fresh
new stream each time.
tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java