Package | Description |
---|---|
org.apache.tika.batch.fs |
Modifier and Type | Method and Description |
---|---|
static FSUtil.HANDLE_EXISTING |
FSUtil.HANDLE_EXISTING.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FSUtil.HANDLE_EXISTING[] |
FSUtil.HANDLE_EXISTING.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static File |
FSUtil.getOutputFile(File outputRoot,
String initialRelativePath,
FSUtil.HANDLE_EXISTING handleExisting,
String suffix)
Deprecated.
|
static Path |
FSUtil.getOutputPath(Path outputRoot,
String initialRelativePath,
FSUtil.HANDLE_EXISTING handleExisting,
String suffix)
Given an output root and an initial relative path,
return the output file according to the HANDLE_EXISTING strategy
In the most basic use case, given a root directory "input",
a file's relative path "dir1/dir2/fileA.docx", and an output directory
"output", the output file would be "output/dir1/dir2/fileA.docx."
If HANDLE_EXISTING is set to OVERWRITE, this will not check to see if the output already exists,
and the returned file could overwrite an existing file!!!
If HANDLE_EXISTING is set to RENAME, this will try to increment a counter at the end of
the file name (fileA(2).docx) until there is a file name that doesn't exist.
|
Constructor and Description |
---|
FSOutputStreamFactory(File outputRoot,
FSUtil.HANDLE_EXISTING handleExisting,
FSOutputStreamFactory.COMPRESSION compression,
String suffix)
Deprecated.
|
FSOutputStreamFactory(Path outputRoot,
FSUtil.HANDLE_EXISTING handleExisting,
FSOutputStreamFactory.COMPRESSION compression,
String suffix) |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.