|
VTT Java 2010 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.nls.vtt.Lib.DiffUtil
public class DiffUtil
This class is modified from FileDiff.java from incava.org. This is the utility class for using Diff class and print results in the format similar to the Unix "diff" program.
History:
Field Summary | |
---|---|
protected static java.lang.String |
ADD_STR
addition string |
protected static java.lang.String |
CHANGE_STR
change string |
protected static java.lang.String |
COMMA_STR
comma string |
protected static java.lang.String |
DELETE_STR
deletion string |
protected static java.lang.String |
LS_STR
line separator string |
protected static java.lang.String |
SEP_STR
separate string |
protected static java.lang.String |
SOURCE_IND_STR
source indent string |
protected static java.lang.String |
SPACE_STR
space string |
protected static java.lang.String |
TARGET_IND_STR
target indent string |
Method Summary | |
---|---|
static java.lang.String |
GetDiffStr(java.util.Vector<java.lang.String> aLines,
java.util.Vector<java.lang.String> bLines)
Get the difference String. |
static java.util.Vector<java.lang.String> |
GetLinesFromFile(java.lang.String inFile)
Get the line from a file. |
static java.util.Vector<java.lang.String> |
GetLinesFromStr(java.lang.String inStr)
Get the line from a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String LS_STR
protected static final java.lang.String SPACE_STR
protected static final java.lang.String COMMA_STR
protected static final java.lang.String ADD_STR
protected static final java.lang.String CHANGE_STR
protected static final java.lang.String DELETE_STR
protected static final java.lang.String SEP_STR
protected static final java.lang.String SOURCE_IND_STR
protected static final java.lang.String TARGET_IND_STR
Method Detail |
---|
public static java.lang.String GetDiffStr(java.util.Vector<java.lang.String> aLines, java.util.Vector<java.lang.String> bLines)
aLines
- the first vector of lines to comparebLines
- the second vector of lines to compare
public static java.util.Vector<java.lang.String> GetLinesFromFile(java.lang.String inFile)
inFile
- the input file
public static java.util.Vector<java.lang.String> GetLinesFromStr(java.lang.String inStr)
inStr
- the input string
|
VTT Java 2010 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |