Class SaveDocumentTransformerConfig
java.lang.Object
com.norconex.importer.handler.BaseLabelableConfig
com.norconex.importer.handler.BaseDocHandlerConfig
com.norconex.importer.handler.transformer.impl.SaveDocumentTransformerConfig
- All Implemented Interfaces:
Labelable
Saves a copy of the document at its current processing state in the specified directory. If no directory is specified, the default is "./savedDocuments". It is recommended to use this tagger as a pre-parse handler if you want to save the original file.
Any maximum file path length value below 10 is considered unlimited (the default).
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintinthashCode()booleanisEscape()setDefaultFileName(String defaultFileName) setDirSplitPattern(String dirSplitPattern) setEscape(boolean escape) setMaxPathLength(int maxPathLength) setPathToField(String pathToField) setSaveDir(Path saveDir) toString()Methods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Field Details
-
DEFAULT_SAVE_DIR_PATH
- See Also:
-
DEFAULT_SPLIT_PATTERN
- See Also:
-
DEFAULT_DEFAULT_FILE_NAME
- See Also:
-
-
Constructor Details
-
SaveDocumentTransformerConfig
public SaveDocumentTransformerConfig()
-
-
Method Details
-
getSaveDir
-
getMaxPathLength
public int getMaxPathLength() -
getDirSplitPattern
-
isEscape
public boolean isEscape() -
getPathToField
-
getDefaultFileName
-
setSaveDir
- Returns:
this.
-
setMaxPathLength
- Returns:
this.
-
setDirSplitPattern
- Returns:
this.
-
setEscape
- Returns:
this.
-
setPathToField
- Returns:
this.
-
setDefaultFileName
- Returns:
this.
-
equals
- Overrides:
equalsin classBaseLabelableConfig
-
canEqual
- Overrides:
canEqualin classBaseLabelableConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseLabelableConfig
-
toString
- Overrides:
toStringin classBaseLabelableConfig
-