com.starbase.diff
Class ConsoleWriter

java.lang.Object
  |
  +--com.starbase.diff.EditListWriter
        |
        +--com.starbase.diff.ConsoleWriter

public class ConsoleWriter
extends EditListWriter

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

ConsoleWriter

public ConsoleWriter(java.io.BufferedWriter output,
                     boolean lineNumbers,
                     int tabs,
                     int contextLines,
                     ParsedCharSequence source,
                     ParsedCharSequence target)
Deprecated.  


ConsoleWriter

public ConsoleWriter(java.io.Writer output,
                     boolean lineNumbers,
                     int tabs,
                     int contextLines,
                     ParsedCharSequence source,
                     ParsedCharSequence target)
Method Detail

start

public void start()
           throws java.io.IOException
Description copied from class: EditListWriter
Called to tell writer where it can get the source for the lines.

Specified by:
start in class EditListWriter
java.io.IOException

finish

public void finish()
            throws java.io.IOException
Specified by:
finish in class EditListWriter
java.io.IOException

unchangedLines

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

Specified by:
unchangedLines in class EditListWriter
java.io.IOException

insertLines

public void insertLines(int sourceStart,
                        int targetStart,
                        int length)
                 throws java.io.IOException
Specified by:
insertLines in class EditListWriter
java.io.IOException

deleteLines

public void deleteLines(int sourceStart,
                        int targetStart,
                        int length)
                 throws java.io.IOException
Specified by:
deleteLines in class EditListWriter
java.io.IOException

replaceLines

public void replaceLines(int sourcePos,
                         int sourceLen,
                         int targetPos,
                         int targetLen)
                  throws java.io.IOException
Description copied from class: EditListWriter
Called when lines in the source are replaced by lines in the target.

Specified by:
replaceLines in class EditListWriter
java.io.IOException


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.