public class DiffHtmlUtil
extends java.lang.Object
This class can compare two different versions of HTML code. It detects changes to an entire HTML page such as removal or addition of characters or images.
Constructor and Description |
---|
DiffHtmlUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
diff(java.io.Reader source,
java.io.Reader target) |
static DiffHtml |
getDiffHtml() |
static java.lang.String |
replaceStyles(java.lang.String html) |
void |
setDiffHtml(DiffHtml diffHtml) |
public static java.lang.String diff(java.io.Reader source, java.io.Reader target) throws java.lang.Exception
java.lang.Exception
public static DiffHtml getDiffHtml()
public static java.lang.String replaceStyles(java.lang.String html)
public void setDiffHtml(DiffHtml diffHtml)