|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.diff.EditListWriter
|
+--com.starbase.diff.ConsoleWriter
This interface can be used when reconstructing a target from a source and a delta
| Constructor Summary | |
ConsoleWriter(java.io.BufferedWriter output,
boolean lineNumbers,
int tabs,
int contextLines,
ParsedCharSequence source,
ParsedCharSequence target)
Deprecated. |
|
ConsoleWriter(java.io.Writer output,
boolean lineNumbers,
int tabs,
int contextLines,
ParsedCharSequence source,
ParsedCharSequence target)
|
|
| Method Summary | |
void |
deleteLines(int sourceStart,
int targetStart,
int length)
|
void |
finish()
|
void |
insertLines(int sourceStart,
int targetStart,
int length)
|
void |
replaceLines(int sourcePos,
int sourceLen,
int targetPos,
int targetLen)
Called when lines in the source are replaced by lines in the target. |
void |
start()
Called to tell writer where it can get the source for the lines. |
void |
unchangedLines(int sourceStart,
int targetStart,
int length)
When an original line from the source carries over into the rebuilt output |
| Methods inherited from class com.starbase.diff.EditListWriter |
write |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConsoleWriter(java.io.BufferedWriter output,
boolean lineNumbers,
int tabs,
int contextLines,
ParsedCharSequence source,
ParsedCharSequence target)
public ConsoleWriter(java.io.Writer output,
boolean lineNumbers,
int tabs,
int contextLines,
ParsedCharSequence source,
ParsedCharSequence target)
| Method Detail |
public void start()
throws java.io.IOException
EditListWriter
start in class EditListWriterjava.io.IOException
public void finish()
throws java.io.IOException
finish in class EditListWriterjava.io.IOException
public void unchangedLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
EditListWriter
unchangedLines in class EditListWriterjava.io.IOException
public void insertLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
insertLines in class EditListWriterjava.io.IOException
public void deleteLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
deleteLines in class EditListWriterjava.io.IOException
public void replaceLines(int sourcePos,
int sourceLen,
int targetPos,
int targetLen)
throws java.io.IOException
EditListWriter
replaceLines in class EditListWriterjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||