Class 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.
    • Constructor Detail

      • TokenReplacerDocumentFileProcessor

        public TokenReplacerDocumentFileProcessor​(TokenReplacer tokenReplacer)
    • Method Detail

      • moduleCanBeReadAsString

        protected boolean moduleCanBeReadAsString​(com.marklogic.client.io.Format format)