public final class ContentImporterHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
ContentImporterHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
serializeNode(Node node)
Serialize a XML node as a String, with XML declaration and without indentation.
|
static String |
serializeNode(Node node,
boolean indent)
Serialize a XML node as a String, with XML declaration.
|
static String |
serializeNode(Node node,
boolean indent,
boolean omitXmlDeclaration)
Serialize a XML node as a String.
|
static String |
textToDocbook(String[] lines)
Transform text to docbook syntaxe
|
private ContentImporterHelper()
public static String textToDocbook(String[] lines)
lines
- The paragraphs to transformpublic static String serializeNode(Node node) throws TransformerException
node
- the node.TransformerException
- if an error occurs.public static String serializeNode(Node node, boolean indent) throws TransformerException
node
- the node.indent
- true to indent the result, false otherwise.TransformerException
- if an error occurs.public static String serializeNode(Node node, boolean indent, boolean omitXmlDeclaration) throws TransformerException
node
- the node.indent
- true to indent the result, false otherwise.omitXmlDeclaration
- true to omit XML declaration, false otherwise.TransformerException
- if an error occurs.