Interface StreamingContentHandlerFactory

All Superinterfaces:
ContentHandlerFactory, Serializable
All Known Implementing Classes:
BasicContentHandlerFactory

public interface StreamingContentHandlerFactory extends ContentHandlerFactory
Extended factory interface for creating ContentHandler instances that write directly to an OutputStream.

This interface extends ContentHandlerFactory to add streaming output capability, primarily used by tika-server's /tika endpoint for streaming responses back to clients.

See Also:
  • Method Details

    • createHandler

      ContentHandler createHandler(OutputStream os, Charset charset)
      Creates a new ContentHandler that writes output directly to the given OutputStream.
      Parameters:
      os - the output stream to write to
      charset - the character encoding to use
      Returns:
      a new ContentHandler instance that writes to the stream