public static TikaInputStream get(InputStream stream) {
        return get(stream, new TemporaryResources(), null);
    }
Casts or wraps the given stream to a TikaInputStream instance.
This method can be used to access the functionality of this class
even when given just a normal input stream instance.
<p>
Use this method instead of the
{@link #get(InputStream, TemporaryResources, Metadata)} alternative when you
<em>do</em> explicitly close the returned stream. The recommended
access pattern is:
<pre>
try (TikaInputStream stream = TikaInputStream.get(...)) {
    // process stream
}
</pre>
<p>
The given stream instance will be closed along with any other resources
associated with the returned TikaInputStream instance when the
{@link #close()} method is called by the try-with-resources statement.

@param stream normal input stream
@return a TikaInputStream instance
tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java