Class NodePrintUtils

java.lang.Object
com.idmedia.translationstudio.impl.util.NodePrintUtils

public class NodePrintUtils extends Object
Print Nodes to string
Author:
I-D Media AG
  • Method Details

    • nodeToString

      @NotNull public static @NotNull String nodeToString(Node pNode)
      Create Text Content from Node's children
      Parameters:
      pNode - Node Parent Node
      Returns:
    • nodeToString

      @NotNull public static @NotNull String nodeToString(Node pNode, boolean skipWrappingNode)
      Create Text Content from Node
      Parameters:
      pNode - Node Parent Node
      skipWrappingNode - 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 Node
      skipWrappingNode - Skip parent node
      bOmitXml -
      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

      public static void nodeToString(Node node, StringBuilder pValue)
      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

      @NotNull public static @NotNull String nodeToString(NodeList vNodes)
      print given nodes
      Parameters:
      vNodes -
      Returns: