Class TikaInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.TaggedInputStream
org.apache.tika.io.TikaInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class TikaInputStream extends org.apache.commons.io.input.TaggedInputStream
Input stream with extended capabilities for detection and parsing.

This implementation uses backing strategies to handle different input types:

  • ByteArraySource for byte[] inputs - no caching needed
  • FileSource for Path/File inputs - direct file access
  • CachingSource for InputStream inputs - caches bytes as read
Since:
Apache Tika 0.8