Class PrettyPrintTransformer

java.lang.Object
eu.europa.esig.dss.xades.signature.PrettyPrintTransformer

public class PrettyPrintTransformer extends Object
Performs pretty-print transformations on an XML signature
  • Constructor Details

    • PrettyPrintTransformer

      public PrettyPrintTransformer()
      Default constructor
  • Method Details

    • setIndentAmount

      public void setIndentAmount(int indentAmount)
      Configures the amount of spaces to add
      Parameters:
      indentAmount - int
    • transform

      public Node transform(Node nodeToTransform)
      Indents the provided nodeToTransform, by keeping the original indents if present
      Parameters:
      nodeToTransform - Node to be indented
      Returns:
      Node with indents