Class NodePrintUtils
java.lang.Object
com.idmedia.translationstudio.impl.util.NodePrintUtils
Print Nodes to string
- Author:
- I-D Media AG
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringnodeToString(Node pNode) Create Text Content from Node's childrenstatic @NotNull StringnodeToString(NodeList vNodes) print given nodesstatic @NotNull StringnodeToString(Node pNode, boolean skipWrappingNode) Create Text Content from Nodestatic @NotNull StringnodeToString(Node pNode, boolean skipWrappingNode, boolean bOmitXml) Create Text Content from Nodestatic voidnodeToString(Node node, StringBuilder pValue) Create Text Content from Nodestatic voidnodeToString(Node pNode, StringBuilder psOutputBuffer, boolean bOmitXmlDeclaration) Add Content of given Node tostatic voidnodeToString(Node node, StringBuilder pValue, boolean bOmitXmlDeclaration, boolean bIndentOutput) Add Content of given Node tostatic voidwrite(@NotNull Element pElement, @NotNull OutputStream out) Write XML to output streamstatic voidwrite(@NotNull Element pElement, @NotNull OutputStream out, boolean bIndentOutput) Write XML to output stream
-
Method Details
-
nodeToString
Create Text Content from Node's children- Parameters:
pNode- Node Parent Node- Returns:
-
nodeToString
Create Text Content from Node- Parameters:
pNode- Node Parent NodeskipWrappingNode- Skip parent node- Returns:
-
nodeToString
@NotNull public static @NotNull String nodeToString(Node pNode, boolean skipWrappingNode, boolean bOmitXml) Create Text Content from Node- Parameters:
pNode- Node Parent NodeskipWrappingNode- Skip parent nodebOmitXml-- Returns:
-
write
public static void write(@NotNull @NotNull Element pElement, @NotNull @NotNull OutputStream out) throws IOException Write XML to output stream- Parameters:
pElement-out-- Throws:
IOException
-
write
public static void write(@NotNull @NotNull Element pElement, @NotNull @NotNull OutputStream out, boolean bIndentOutput) throws IOException Write XML to output stream- Parameters:
pElement-out-bIndentOutput-- Throws:
IOException
-
nodeToString
Create Text Content from Node- Parameters:
node-pValue-
-
nodeToString
public static void nodeToString(Node pNode, StringBuilder psOutputBuffer, boolean bOmitXmlDeclaration) Add Content of given Node to- Parameters:
pNode-psOutputBuffer-bOmitXmlDeclaration-
-
nodeToString
public static void nodeToString(Node node, StringBuilder pValue, boolean bOmitXmlDeclaration, boolean bIndentOutput) Add Content of given Node to- Parameters:
node-pValue-bOmitXmlDeclaration-bIndentOutput-
-
nodeToString
print given nodes- Parameters:
vNodes-- Returns:
-