Package com.marklogic.client.ext.file
Class TokenReplacerDocumentFileProcessor
- java.lang.Object
-
- com.marklogic.client.ext.helper.LoggingObject
-
- com.marklogic.client.ext.file.TokenReplacerDocumentFileProcessor
-
- All Implemented Interfaces:
DocumentFileProcessor
public class TokenReplacerDocumentFileProcessor extends LoggingObject implements DocumentFileProcessor
Processor that delegates to a TokenReplacer for replacing tokens in the content of a DocumentFile. In order to replace tokens, the File must first be read in as a String. After tokens are replaced, the String is set back on the DocumentFile via setModifiedContent.
-
-
Field Summary
-
Fields inherited from class com.marklogic.client.ext.helper.LoggingObject
logger
-
-
Constructor Summary
Constructors Constructor Description TokenReplacerDocumentFileProcessor(TokenReplacer tokenReplacer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanmoduleCanBeReadAsString(com.marklogic.client.io.Format format)DocumentFileprocessDocumentFile(DocumentFile documentFile)-
Methods inherited from class com.marklogic.client.ext.helper.LoggingObject
format
-
-
-
-
Constructor Detail
-
TokenReplacerDocumentFileProcessor
public TokenReplacerDocumentFileProcessor(TokenReplacer tokenReplacer)
-
-
Method Detail
-
processDocumentFile
public DocumentFile processDocumentFile(DocumentFile documentFile)
- Specified by:
processDocumentFilein interfaceDocumentFileProcessor- Returns:
- the same or a new DocumentFile instance
-
moduleCanBeReadAsString
protected boolean moduleCanBeReadAsString(com.marklogic.client.io.Format format)
-
-