Package org.apache.tika.sax
Interface StreamingContentHandlerFactory
- All Superinterfaces:
ContentHandlerFactory,Serializable
- All Known Implementing Classes:
BasicContentHandlerFactory
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.
-
Method Summary
Modifier and TypeMethodDescriptioncreateHandler(OutputStream os, Charset charset) Creates a new ContentHandler that writes output directly to the given OutputStream.Methods inherited from interface org.apache.tika.sax.ContentHandlerFactory
createHandler, handlerTypeName
-
Method Details
-
createHandler
Creates a new ContentHandler that writes output directly to the given OutputStream.- Parameters:
os- the output stream to write tocharset- the character encoding to use- Returns:
- a new ContentHandler instance that writes to the stream
-