Liferay 6.0.5

com.liferay.portal.util
Class DiffHtmlImpl

java.lang.Object
  extended by com.liferay.portal.util.DiffHtmlImpl
All Implemented Interfaces:
DiffHtml

public class DiffHtmlImpl
extends Object
implements DiffHtml

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 Summary
DiffHtmlImpl()
           
 
Method Summary
 String diff(Reader source, Reader target)
          This is a diff method with default values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffHtmlImpl

public DiffHtmlImpl()
Method Detail

diff

public String diff(Reader source,
                   Reader target)
            throws Exception
This is a diff method with default values.

Specified by:
diff in interface DiffHtml
Returns:
a string containing the HTML code of the source text showing the differences with the target text
Throws:
Exception

Liferay 6.0.5