| java.lang.Object de.regnis.q.sequence.line.diff.QDiffSequenceGenerator de.regnis.q.sequence.line.diff.QDiffNormalGenerator
Method Summary | |
protected void | add(int addAt, int addStart, int addEnd, QSequenceLineCache addLines, String encoding, Writer output) Handles the addition of lines to source.
Parameters: addAt - the line where the new lines would be added to target (0 based) Parameters: addStart - the first line added from source (0 based) Parameters: addEnd - the last line added from source (0 based) Parameters: addLines - all the lines from the source file. | protected void | change(int replaceStart, int replaceEnd, QSequenceLineCache replaceLines, int replaceWithStart, int replaceWithEnd, QSequenceLineCache replaceWithLines, String encoding, Writer output) Handles a change of a range of lines in target to a range of lines in source. | public QDiffGenerator | createGenerator(Map properties) | protected void | delete(int deleteAt, int deleteStart, int deleteEnd, QSequenceLineCache deleteLines, String encoding, Writer output) Handles a delete of lines from the target.
Parameters: deleteAt - the line where the lines would have appeared in the source (0 based) Parameters: deleteStart - first line deleted from target (0 based). Parameters: deleteEnd - last line deleted from target (0 based). Parameters: deleteLines - all the lines from the target file. | protected String | displayWhiteSpace(String s) | public void | generateDiffHeader(String item, String leftInfo, String rightInfo, Writer output) | protected void | processBlock(QSequenceDifferenceBlock[] segment, QSequenceLineCache sourceLines, QSequenceLineCache targetLines, String encoding, Writer output) | protected void | processBlock(int sourceStartLine, int sourceEndLine, QSequenceLineCache sourceLines, int targetStartLine, int targetEndLine, QSequenceLineCache targetLines, String encoding, Writer output) | public static void | setup() |
add | protected void add(int addAt, int addStart, int addEnd, QSequenceLineCache addLines, String encoding, Writer output) throws IOException(Code) | | Handles the addition of lines to source.
Parameters: addAt - the line where the new lines would be added to target (0 based) Parameters: addStart - the first line added from source (0 based) Parameters: addEnd - the last line added from source (0 based) Parameters: addLines - all the lines from the source file. Could be accessed with addStart andaddEnd to identify the added lines. |
change | protected void change(int replaceStart, int replaceEnd, QSequenceLineCache replaceLines, int replaceWithStart, int replaceWithEnd, QSequenceLineCache replaceWithLines, String encoding, Writer output) throws IOException(Code) | | Handles a change of a range of lines in target to a range of lines in source.
Parameters: replaceStart - the first line in target that will be replaced (0 based) Parameters: replaceEnd - the last line in target that will be replaced (0 based) Parameters: replaceLines - all the lines in target Parameters: replaceWithStart - the first line in source to that will replace the lines in target (0 based) Parameters: replaceWithEnd - the last line in source to that will replace the lines in target (0 based) Parameters: replaceWithLines - all the lines in source |
delete | protected void delete(int deleteAt, int deleteStart, int deleteEnd, QSequenceLineCache deleteLines, String encoding, Writer output) throws IOException(Code) | | Handles a delete of lines from the target.
Parameters: deleteAt - the line where the lines would have appeared in the source (0 based) Parameters: deleteStart - first line deleted from target (0 based). Parameters: deleteEnd - last line deleted from target (0 based). Parameters: deleteLines - all the lines from the target file. Could be accessed with deleteStart anddeleteEnd to identify the deleted lines. |
setup | public static void setup()(Code) | | |
Methods inherited from de.regnis.q.sequence.line.diff.QDiffSequenceGenerator | public void generateBinaryDiff(InputStream left, InputStream right, String encoding, Writer output) throws IOException(Code)(Java Doc) public void generateTextDiff(InputStream left, InputStream right, String encoding, Writer output) throws IOException(Code)(Java Doc) protected String getEOL()(Code)(Java Doc) protected int getGutter()(Code)(Java Doc) protected Map getProperties()(Code)(Java Doc) protected QSequenceLineSimplifier getSimplifier()(Code)(Java Doc) protected void print(String str, Writer output) throws IOException(Code)(Java Doc) protected String printLine(QSequenceLine line, String encoding) throws IOException(Code)(Java Doc) protected void println(Writer output) throws IOException(Code)(Java Doc) protected void println(String str, Writer output) throws IOException(Code)(Java Doc) abstract protected void processBlock(QSequenceDifferenceBlock[] segment, QSequenceLineCache sourceLines, QSequenceLineCache targetLines, String encoding, Writer output) throws IOException(Code)(Java Doc)
|
|
|