TikaInputStream instances can be created using the various static get()
factory methods. Most of these methods take an optional {@link Metadata} argument that is then filled with the available inputmetadata from the given resource. The created TikaInputStream instance keeps track of the original resource used to create it, while behaving otherwise just like a normal, buffered {@link InputStream}. A TikaInputStream instance is also guaranteed to support the {@link #mark(int)} feature.
Code that wants to access the underlying file or other resources associated with a TikaInputStream should first use the {@link #get(InputStream)} factory method to cast or wrap a given{@link InputStream} into a TikaInputStream instance. @since Apache Tika 0.8
|
|