| java.lang.Object vqwiki.utils.DiffUtil
DiffUtil | public class DiffUtil (Code) | | Utility class for creating either a text of HTML representation of the difference
between two files.
author: Ryan Holliday |
Inner Class :class DiffHelper | |
Field Summary | |
protected static Logger | logger |
Method Summary | |
public static String | convertToHTML(String input) | public static String | diff(String newVersion, String oldVersion, boolean htmlFormat) Returned an HTML formatted table that displays a diff of two Strings.
FIXME: return objects and parse to HTML from a JSP tag, not a class file.
Parameters: newVersion - The String that is to be compared to, ie the later version of a topic. Parameters: oldVersion - The String that is to be considered as having changed, ie the earlierversion of a topic. Parameters: htmlFormat - Set to true if the diff should be returned in HTML format. |
logger | protected static Logger logger(Code) | | |
diff | public static String diff(String newVersion, String oldVersion, boolean htmlFormat)(Code) | | Returned an HTML formatted table that displays a diff of two Strings.
FIXME: return objects and parse to HTML from a JSP tag, not a class file.
Parameters: newVersion - The String that is to be compared to, ie the later version of a topic. Parameters: oldVersion - The String that is to be considered as having changed, ie the earlierversion of a topic. Parameters: htmlFormat - Set to true if the diff should be returned in HTML format. Returnstext otherwise. Returns an HTML-formatted table that displays the diff of the Strings. |
|
|