org.test4j.tools.commons
类 TextDiffHelper
java.lang.Object
org.test4j.tools.commons.TextDiffHelper
public class TextDiffHelper
- extends Object
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextDiffHelper
public TextDiffHelper()
getDiffHtml
public static String getDiffHtml(String lText,
String rText)
- 比较左边文件内容和右边文件内容的区别,并且返回比较差异内容的html
- 参数:
lText - rText -
- 返回:
getDiff
public static LinkedList<TextDiffMatchPatch.Diff> getDiff(String lText,
String rText)
- 比较左边和右边的文件,返回比较差异
- 参数:
lText - rText -
- 返回:
Copyright © 2013. All rights reserved.