com.liferay.portal.diff
Class DiffHtmlImpl
java.lang.Object
com.liferay.portal.diff.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiffHtmlImpl
public DiffHtmlImpl()
diff
public String diff(Reader source,
Reader target)
throws Exception
- This is a diff method with default values.
- Specified by:
diff in interface DiffHtml
- Parameters:
source - the source texttarget - the modified version of the source text
- Returns:
- a string containing the HTML code of the source text showing the
differences with the target text
- Throws:
Exception - if an exception occurred
replaceStyles
public String replaceStyles(String html)
- Specified by:
replaceStyles in interface DiffHtml