public class FileSpewer extends Spewer implements Serializable
Reader to the filesystem.
Metadata is written to a JSON file.fields, outputMetadata, tags| Constructor and Description |
|---|
FileSpewer(FieldNames fields) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileSpewer |
configure(Options<String> options) |
Path |
getOutputDirectory() |
String |
getOutputExtension() |
void |
setOutputDirectory(Path outputDirectory) |
void |
write(TikaDocument tikaDocument,
Reader reader) |
void |
writeMetadata(TikaDocument tikaDocument) |
copy, copy, getFields, getOutputEncoding, outputMetadata, outputMetadata, setOutputEncoding, setTags, toString, writepublic FileSpewer(FieldNames fields)
public FileSpewer configure(Options<String> options)
public void setOutputDirectory(Path outputDirectory)
public Path getOutputDirectory()
public String getOutputExtension()
public void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void write(TikaDocument tikaDocument, Reader reader) throws IOException
write in class SpewerIOExceptionpublic void writeMetadata(TikaDocument tikaDocument) throws IOException
writeMetadata in class SpewerIOExceptionCopyright © 2018. All rights reserved.