Class FileSystemEmitter
java.lang.Object
org.apache.tika.plugins.AbstractTikaExtension
org.apache.tika.pipes.api.emitter.AbstractStreamEmitter
org.apache.tika.pipes.emitter.fs.FileSystemEmitter
- All Implemented Interfaces:
Emitter, StreamEmitter, TikaExtension
Emitter to write to a file system.
This calculates the path to write to based on the FileSystemEmitterConfig.basePath()
and the value of the TikaCoreProperties.SOURCE_PATH value.
-
Field Summary
Fields inherited from class AbstractTikaExtension
pluginConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSystemEmitterbuild(ExtensionConfig pluginConfig) voidemit(String emitKey, InputStream inputStream, Metadata userMetadata, ParseContext parseContext) voidemit(String emitKey, List<Metadata> metadataList, ParseContext parseContext) Methods inherited from class AbstractStreamEmitter
emitMethods inherited from class AbstractTikaExtension
getExtensionConfigMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TikaExtension
getExtensionConfig
-
Constructor Details
-
FileSystemEmitter
-
-
Method Details
-
build
public static FileSystemEmitter build(ExtensionConfig pluginConfig) throws TikaConfigException, IOException - Throws:
TikaConfigExceptionIOException
-
emit
public void emit(String emitKey, List<Metadata> metadataList, ParseContext parseContext) throws IOException - Throws:
IOException
-
emit
public void emit(String emitKey, InputStream inputStream, Metadata userMetadata, ParseContext parseContext) throws IOException - Throws:
IOException
-