Class PlaintextToXMLNode


  • public class PlaintextToXMLNode
    extends AbstractToXMLNode
    A Node that converts plain text (for instance from text files or plaintext mails to XML)
    • Constructor Detail

      • PlaintextToXMLNode

        public PlaintextToXMLNode()
    • Method Detail

      • isRfc2646Mode

        public boolean isRfc2646Mode()
        Returns:
        the rfc2646Mode
      • setRfc2646Mode

        public void setRfc2646Mode​(boolean rfc2646Mode)
        Enables or disables the RFC 2646 mode.

        In RFC2646 mode several aspects of a text are treated specially:

        • format=flowed is auto-detected and flowed paragraphs are unwrapped if so.
        • Quoted lines (starting with '>') are detected and treated as separate sections.
        • Space-stuffing is undone.
        • Signatures (separated by '-- ') are handled as separate sections.

        default: true

        Parameters:
        rfc2646Mode - the rfc2646Mode to set
      • getWorkerClassName

        public String getWorkerClassName()
        Description copied from class: Node
        Return the node's associated com.levigo.jadice.server.core.NodeWorker full qualified class's name. By default, the worker class name is
        • The same as the node name with the trailing "Node" replaced by "Worker" if the node name ends in "Node"
        • The node class name with an appended "Worker" otherwise.
        The package name of the worker class is the name of the Node's package with an appended ".worker".

        This behavior can be overridden in concrete subclasses.

        Overrides:
        getWorkerClassName in class Node
        Returns:
        the full qualified class name of the worker of this node.
      • isPerformSanityChecks

        public boolean isPerformSanityChecks()
      • setPerformSanityChecks

        public void setPerformSanityChecks​(boolean performSanityChecks)
        Set the flag indicating whether the output XML document should be subject to sanity checks designed to reduce the likeliness of them causing problems with the XSL formatter.

        Default: true.

        Parameters:
        performSanityChecks - the performSanityChecks to set