public static boolean isTikaInputStream(InputStream stream) {
        return stream instanceof TikaInputStream;
    }
Checks whether the given stream is a TikaInputStream instance.
The given stream can be <code>null</code>, in which case the return
value is <code>false</code>.

@param stream input stream, possibly <code>null</code>
@return <code>true</code> if the stream is a TikaInputStream instance,
<code>false</code> otherwise
tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java