com.starteam.diff
Class EditListWriter

java.lang.Object
  extended by com.starteam.diff.EditListWriter
Direct Known Subclasses:
ConsoleWriter, HTMLDiffWriter

public abstract class EditListWriter
extends java.lang.Object

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

EditListWriter

public EditListWriter()
Method Detail

write

public void write(EditCollection list,
                  int sourceLen,
                  int destLen)
           throws java.io.IOException
write to the list

Parameters:
list - the collection to write to
sourceLen - the length of the source
destLen - the length of the destination
Throws:
java.io.IOException - throws an exception on error

start

public abstract void start()
                    throws java.io.IOException
Called to tell writer where it can get the source for the lines.

Throws:
java.io.IOException

unchangedLines

public abstract void unchangedLines(int sourceStart,
                                    int targetStart,
                                    int length)
                             throws java.io.IOException
When an original line from the source carries over into the rebuilt output

Parameters:
sourceStart - the start line in the source
targetStart - the start line in the target
length - the length of lines to leave unchanged
Throws:
java.io.IOException - an exception on failure

replaceLines

public abstract void replaceLines(int sourceStart,
                                  int sourceLen,
                                  int targetStart,
                                  int targetLen)
                           throws java.io.IOException
Called when lines in the source are replaced by lines in the target.

Parameters:
sourceStart - the start line in the source
sourceLen - the length of the source
targetStart - the start line in the target
targetLen - the length of the target
Throws:
java.io.IOException - an exception on failure

insertLines

public abstract void insertLines(int sourceStart,
                                 int targetStart,
                                 int length)
                          throws java.io.IOException
called when lines are inserted

Parameters:
sourceStart - the start line in the source
targetStart - the start line in the target
length - the number of lines to insert
Throws:
java.io.IOException - an exception on failure

deleteLines

public abstract void deleteLines(int sourceStart,
                                 int targetStart,
                                 int length)
                          throws java.io.IOException
called when lines are deleted

Parameters:
sourceStart - the start line in the source
targetStart - the start line in the target
length - the number of lines to delete
Throws:
java.io.IOException - an exception on failure

finish

public abstract void finish()
                     throws java.io.IOException
called when the last lines are being processed

Throws:
java.io.IOException - an exception on failure


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.