com.liferay.portal.kernel.util
Class DiffHtmlUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.DiffHtmlUtil

public class DiffHtmlUtil
extends java.lang.Object

View Source

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.

Author:
Julio Camarero

Constructor Summary
DiffHtmlUtil()
           
 
Method Summary
static java.lang.String diff(java.io.Reader source, java.io.Reader target)
           
static DiffHtml getDiffHtml()
           
 void setDiffHtml(DiffHtml diffHtml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffHtmlUtil

public DiffHtmlUtil()
Method Detail

diff

public static java.lang.String diff(java.io.Reader source,
                                    java.io.Reader target)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getDiffHtml

public static DiffHtml getDiffHtml()

setDiffHtml

public void setDiffHtml(DiffHtml diffHtml)