|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.diff.EditListWriter
com.starteam.diff.ConsoleWriter
public final class ConsoleWriter
This interface can be used when reconstructing a target from a source and a delta
| Constructor Summary | |
|---|---|
ConsoleWriter(java.io.Writer output,
boolean lineNumbers,
int tabs,
int contextLines,
ParsedCharSequence source,
ParsedCharSequence target)
Construct a Console Writer |
|
| Method Summary | |
|---|---|
void |
deleteLines(int sourceStart,
int targetStart,
int length)
delete lines from source and target |
void |
finish()
called when the last lines are being processed |
void |
insertLines(int sourceStart,
int targetStart,
int length)
called when lines are inserted |
void |
replaceLines(int sourcePos,
int sourceLen,
int targetPos,
int targetLen)
replace lines in source and target |
void |
start()
start writing |
void |
unchangedLines(int sourceStart,
int targetStart,
int length)
lines to leave unchanged |
| Methods inherited from class com.starteam.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.Writer output,
boolean lineNumbers,
int tabs,
int contextLines,
ParsedCharSequence source,
ParsedCharSequence target)
output - the output to write tolineNumbers - true if line numbers are to be writtentabs - the tab length if anycontextLines - the number of context linessource - the source sequence to usetarget - the target sequence to reconstruct| Method Detail |
|---|
public void start()
throws java.io.IOException
start in class EditListWriterjava.io.IOException
public void finish()
throws java.io.IOException
EditListWriter
finish in class EditListWriterjava.io.IOException - an exception on failure
public void unchangedLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
unchangedLines in class EditListWritersourceStart - the start source positiontargetStart - the target start positionlength - the number of lines to leave unchanged
java.io.IOException - an exception on failure
public void insertLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
EditListWriter
insertLines in class EditListWritersourceStart - the start line in the sourcetargetStart - the start line in the targetlength - the number of lines to insert
java.io.IOException - an exception on failure
public void deleteLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
deleteLines in class EditListWritersourceStart - delete fromtargetStart - delete fromlength - the number of lines to delete
java.io.IOException - an exception on failure
public void replaceLines(int sourcePos,
int sourceLen,
int targetPos,
int targetLen)
throws java.io.IOException
replaceLines in class EditListWritersourcePos - the source start positionsourceLen - the source lengthtargetPos - the target start positiontargetLen - the target length
java.io.IOException - an exception on failure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||