Class SaveDocumentTransformer
java.lang.Object
com.norconex.importer.handler.transformer.impl.SaveDocumentTransformer
- All Implemented Interfaces:
Configurable<SaveDocumentTransformerConfig>,ConfigurableDocHandler<SaveDocumentTransformerConfig>,DocHandler
public class SaveDocumentTransformer
extends Object
implements ConfigurableDocHandler<SaveDocumentTransformerConfig>
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 inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTYFields inherited from interface com.norconex.importer.handler.DocHandler
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbooleanhandle(DocHandlerContext docCtx) Perform any operations on a document.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.norconex.importer.handler.DocHandler
close, init
-
Constructor Details
-
SaveDocumentTransformer
public SaveDocumentTransformer()
-
-
Method Details
-
handle
Description copied from interface:DocHandlerPerform any operations on a document.- Specified by:
handlein interfaceDocHandler- Parameters:
docCtx- the document handling context- Returns:
falseto stop processing and reject a document ortrueto proceed to the next configured handler.- Throws:
IOException- An I/O exception of some sort has occurred
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<SaveDocumentTransformerConfig>
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-