Package org.apache.tika.pipes
Class HandlerConfig
- java.lang.Object
-
- org.apache.tika.pipes.HandlerConfig
-
- All Implemented Interfaces:
Serializable
public class HandlerConfig extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HandlerConfig.PARSE_MODE
HandlerConfig.PARSE_MODE.RMETA
"recursive metadata" is the same as the -J option in tika-app and the /rmeta endpoint in tika-server.
-
Field Summary
Fields Modifier and Type Field Description static HandlerConfig
DEFAULT_HANDLER_CONFIG
-
Constructor Summary
Constructors Constructor Description HandlerConfig()
HandlerConfig(BasicContentHandlerFactory.HANDLER_TYPE type, HandlerConfig.PARSE_MODE parseMode, int writeLimit, int maxEmbeddedResources, boolean throwOnWriteLimitReached)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getMaxEmbeddedResources()
HandlerConfig.PARSE_MODE
getParseMode()
BasicContentHandlerFactory.HANDLER_TYPE
getType()
int
getWriteLimit()
int
hashCode()
boolean
isThrowOnWriteLimitReached()
void
setMaxEmbeddedResources(int maxEmbeddedResources)
void
setParseMode(String parseMode)
void
setParseMode(HandlerConfig.PARSE_MODE parseMode)
void
setThrowOnWriteLimitReached(boolean throwOnWriteLimitReached)
void
setType(String typeString)
void
setType(BasicContentHandlerFactory.HANDLER_TYPE type)
void
setWriteLimit(int writeLimit)
String
toString()
-
-
-
Field Detail
-
DEFAULT_HANDLER_CONFIG
public static final HandlerConfig DEFAULT_HANDLER_CONFIG
-
-
Constructor Detail
-
HandlerConfig
public HandlerConfig()
-
HandlerConfig
public HandlerConfig(BasicContentHandlerFactory.HANDLER_TYPE type, HandlerConfig.PARSE_MODE parseMode, int writeLimit, int maxEmbeddedResources, boolean throwOnWriteLimitReached)
-
-
Method Detail
-
getType
public BasicContentHandlerFactory.HANDLER_TYPE getType()
-
setType
public void setType(BasicContentHandlerFactory.HANDLER_TYPE type)
-
setType
public void setType(String typeString)
-
getWriteLimit
public int getWriteLimit()
-
setWriteLimit
public void setWriteLimit(int writeLimit)
-
getMaxEmbeddedResources
public int getMaxEmbeddedResources()
-
setMaxEmbeddedResources
public void setMaxEmbeddedResources(int maxEmbeddedResources)
-
isThrowOnWriteLimitReached
public boolean isThrowOnWriteLimitReached()
-
setThrowOnWriteLimitReached
public void setThrowOnWriteLimitReached(boolean throwOnWriteLimitReached)
-
getParseMode
public HandlerConfig.PARSE_MODE getParseMode()
-
setParseMode
public void setParseMode(HandlerConfig.PARSE_MODE parseMode)
-
setParseMode
public void setParseMode(String parseMode)
-
-