Class NodeInputStream

java.lang.Object
java.io.InputStream
org.custommonkey.xmlunit.NodeInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class NodeInputStream extends InputStream
Adapter class to present the content of a DOM Node (e.g. a Document) as an InputStream using a DOM to Stream transformation.
  • Constructor Details

    • NodeInputStream

      public NodeInputStream(Node rootNode)
      Simple constructor
      Parameters:
      rootNode - the node to be presented as an input stream
    • NodeInputStream

      public NodeInputStream(Node rootNode, Properties outputProperties)
      Simple constructor
      Parameters:
      rootNode - the node to be presented as an input stream
      outputProperties - properties to use during transformation
  • Method Details