com.liferay.portal.kernel.diff
Class DiffHtmlUtil
java.lang.Object
com.liferay.portal.kernel.diff.DiffHtmlUtil
- Direct Known Subclasses:
- DiffHtmlUtil
public class DiffHtmlUtil
- extends 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiffHtmlUtil
public DiffHtmlUtil()
diff
public static String diff(Reader source,
Reader target)
throws Exception
- Throws:
Exception
getDiffHtml
public static DiffHtml getDiffHtml()
replaceStyles
public static String replaceStyles(String html)
setDiffHtml
public void setDiffHtml(DiffHtml diffHtml)