|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.diff.EditListWriter
public abstract class EditListWriter
This interface can be used when reconstructing a target from a source and a delta
| Constructor Summary | |
|---|---|
EditListWriter()
|
|
| Method Summary | |
|---|---|
abstract void |
deleteLines(int sourceStart,
int targetStart,
int length)
called when lines are deleted |
abstract void |
finish()
called when the last lines are being processed |
abstract void |
insertLines(int sourceStart,
int targetStart,
int length)
called when lines are inserted |
abstract void |
replaceLines(int sourceStart,
int sourceLen,
int targetStart,
int targetLen)
Called when lines in the source are replaced by lines in the target. |
abstract void |
start()
Called to tell writer where it can get the source for the lines. |
abstract void |
unchangedLines(int sourceStart,
int targetStart,
int length)
When an original line from the source carries over into the rebuilt output |
void |
write(EditCollection list,
int sourceLen,
int destLen)
write to the list |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditListWriter()
| Method Detail |
|---|
public void write(EditCollection list,
int sourceLen,
int destLen)
throws java.io.IOException
list - the collection to write tosourceLen - the length of the sourcedestLen - the length of the destination
java.io.IOException - throws an exception on error
public abstract void start()
throws java.io.IOException
java.io.IOException
public abstract void unchangedLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
sourceStart - the start line in the sourcetargetStart - the start line in the targetlength - the length of lines to leave unchanged
java.io.IOException - an exception on failure
public abstract void replaceLines(int sourceStart,
int sourceLen,
int targetStart,
int targetLen)
throws java.io.IOException
sourceStart - the start line in the sourcesourceLen - the length of the sourcetargetStart - the start line in the targettargetLen - the length of the target
java.io.IOException - an exception on failure
public abstract void insertLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
sourceStart - 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 abstract void deleteLines(int sourceStart,
int targetStart,
int length)
throws java.io.IOException
sourceStart - the start line in the sourcetargetStart - the start line in the targetlength - the number of lines to delete
java.io.IOException - an exception on failure
public abstract void finish()
throws java.io.IOException
java.io.IOException - an exception on failure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||