public class DocumentComparator
extends java.lang.Object
| Constructor and Description |
|---|
DocumentComparator(java.io.PrintStream print)
Constructor.
|
DocumentComparator(java.io.PrintStream print,
boolean schema)
Constructor with schema adjustments flag specified.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(java.io.Reader rdra,
java.io.Reader rdrb)
Compares a pair of documents by reading them in parallel from a pair of
parsers.
|
public DocumentComparator(java.io.PrintStream print,
boolean schema)
throws org.xmlpull.v1.XmlPullParserException
print - print stream for reporting differencesschema - use schema adjustments in comparisons flagorg.xmlpull.v1.XmlPullParserException - on error creating parserspublic DocumentComparator(java.io.PrintStream print)
throws org.xmlpull.v1.XmlPullParserException
print - print stream for reporting differencesorg.xmlpull.v1.XmlPullParserException - on error creating parserspublic boolean compare(java.io.Reader rdra,
java.io.Reader rdrb)
rdra - reader for first document to be comparedrdrb - reader for second document to be comparedtrue if the documents are the same,
false if they're different