Class DoctypeInputStream

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

public class DoctypeInputStream extends InputStream
Adapts the marked-up content in a source InputStream to specify that it conforms to a different DTD. Combines InputStream semantics with the ability to specify a target doctype for a byte stream containing XML markup. Used by Validator class to wrap an InputStrea, when performing validation of a document against a DTD.
Examples and more at xmlunit.sourceforge.net
  • Constructor Details

    • DoctypeInputStream

      public DoctypeInputStream(InputStream originalSource, String encoding, String doctypeName, String systemID)
      Create an InputStream whose XML content is provided by the originalSource with the exception of the DOCTYPE which is provided by the doctypeName and systemID.
      Parameters:
      originalSource -
      doctypeName -
      systemID -
  • Method Details