Package org.apache.tika.pipes
Class PipesReporterBase
- java.lang.Object
-
- org.apache.tika.pipes.PipesReporter
-
- org.apache.tika.pipes.PipesReporterBase
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Initializable
- Direct Known Subclasses:
JDBCPipesReporter
public abstract class PipesReporterBase extends PipesReporter implements Initializable
Base class that includes filtering byPipesResult.STATUS
-
-
Field Summary
-
Fields inherited from class org.apache.tika.pipes.PipesReporter
NO_OP_REPORTER
-
-
Constructor Summary
Constructors Constructor Description PipesReporterBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(PipesResult.STATUS status)
Implementations must call this for the includes/excludes filters to work!void
checkInitialization(InitializableProblemHandler problemHandler)
void
initialize(Map<String,Param> params)
void
setExcludes(List<String> excludes)
void
setIncludes(List<String> includes)
-
Methods inherited from class org.apache.tika.pipes.PipesReporter
close, error, error, report, report, supportsTotalCount
-
-
-
-
Method Detail
-
initialize
public void initialize(Map<String,Param> params) throws TikaConfigException
- Specified by:
initialize
in interfaceInitializable
- Parameters:
params
- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
- Specified by:
checkInitialization
in interfaceInitializable
- Parameters:
problemHandler
- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-
accept
public boolean accept(PipesResult.STATUS status)
Implementations must call this for the includes/excludes filters to work!- Parameters:
status
-- Returns:
-
setIncludes
@Field public void setIncludes(List<String> includes) throws TikaConfigException
- Throws:
TikaConfigException
-
setExcludes
@Field public void setExcludes(List<String> excludes) throws TikaConfigException
- Throws:
TikaConfigException
-
-