Package com.levigo.jadice.server.xml
Class PlaintextToXMLNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.xml.AbstractToXMLNode
-
- com.levigo.jadice.server.xml.PlaintextToXMLNode
-
public class PlaintextToXMLNode extends AbstractToXMLNode
ANode
that converts plain text (for instance from text files or plaintext mails to XML)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description PlaintextToXMLNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.boolean
isPerformSanityChecks()
boolean
isRfc2646Mode()
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.void
setRfc2646Mode(boolean rfc2646Mode)
Enables or disables the RFC 2646 mode.-
Methods inherited from class com.levigo.jadice.server.xml.AbstractToXMLNode
isUseMetadataEnvelope, setUseMetadataEnvelope
-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove, validateConfiguration
-
-
-
-
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 associatedcom.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.
This behavior can be overridden in concrete subclasses.
- Overrides:
getWorkerClassName
in classNode
- 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
-
-