Package org.apache.tika.sax
Class BasicContentHandlerFactory
java.lang.Object
org.apache.tika.sax.BasicContentHandlerFactory
- All Implemented Interfaces:
Serializable,ContentHandlerFactory
@Deprecated(since="2026-04-30")
public class BasicContentHandlerFactory
extends Object
implements ContentHandlerFactory
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Basic factory for creating common types of ContentHandlers
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Common handler types for content. -
Constructor Summary
ConstructorsConstructorDescriptionBasicContentHandlerFactory(BasicContentHandlerFactory.HANDLER_TYPE type, int writeLimit) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getNewContentHandler(OutputStream os, String encoding) Deprecated.getNewContentHandler(OutputStream os, Charset charset) Deprecated.getType()Deprecated.intDeprecated.parseHandlerType(String handlerTypeName, BasicContentHandlerFactory.HANDLER_TYPE defaultType) Deprecated.Tries to parse string into handler type.
-
Constructor Details
-
BasicContentHandlerFactory
Deprecated.- Parameters:
type- basic type of handlerwriteLimit- max number of characters to store; if invalid input: '<' 0, the handler will store all characters
-
-
Method Details
-
parseHandlerType
public static BasicContentHandlerFactory.HANDLER_TYPE parseHandlerType(String handlerTypeName, BasicContentHandlerFactory.HANDLER_TYPE defaultType) Deprecated.Tries to parse string into handler type. Returns default if string is null or parse fails. Options: xml, html, text, body, ignore (no content)- Parameters:
handlerTypeName- string to parsedefaultType- type to return if parse fails- Returns:
- handler type
-
getNewContentHandler
Deprecated.- Specified by:
getNewContentHandlerin interfaceContentHandlerFactory
-
getNewContentHandler
public ContentHandler getNewContentHandler(OutputStream os, String encoding) throws UnsupportedEncodingException Deprecated.- Specified by:
getNewContentHandlerin interfaceContentHandlerFactory- Throws:
UnsupportedEncodingException
-
getNewContentHandler
Deprecated.- Specified by:
getNewContentHandlerin interfaceContentHandlerFactory
-
getType
Deprecated.- Returns:
- handler type used by this factory
-
getWriteLimit
public int getWriteLimit()Deprecated.
-