JLibDiff
Class SJDiff

java.lang.Object
  |
  +--JLibDiff.diff
        |
        +--JLibDiff.SJDiff
All Implemented Interfaces:
JLibDiff.define, JLibDiff.HunkVisitable
Direct Known Subclasses:
TextDiff

public class SJDiff
extends JLibDiff.diff

Title: $FileName: SJDiff.java$

Version:
$VerNum: 4$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $

A modified implimentation of JLibDiff.diff. This version copies most of the code from JLibDiff.diff, but changes addes a method to allow a diff to be build from TextLineReader objects.

Field Summary
 
Fields inherited from class JLibDiff.diff
msEOL, v
 
Fields inherited from interface JLibDiff.define
DELETE, INSERT, MAXLINES, ORIGIN
 
Constructor Summary
SJDiff()
          Constructor for SJDiff.
SJDiff(JLibDiff.diff d)
          Constructor for SJDiff.
SJDiff(java.lang.String s1, java.lang.String s2)
          Constructor for SJDiff.
SJDiff(java.util.Vector v)
          Constructor for SJDiff.
 
Method Summary
 void diffTextLineIterator(TextLineIterator current, TextLineIterator newFile)
          Builds this diff from the two TextLineIterator objects.
 void diffTextLineReader(TextLineReader current, TextLineReader newFile)
          Builds this diff from the two TextLineReader objects.
 
Methods inherited from class JLibDiff.diff
accept, diffBuffer, diffFile, getDiffAlgorithmClass, getHunk, getUnderlyingVector, hunkAt, makeDiff, numberOfHunk, print, setDiffAlgorithmClass, supressEndOfLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SJDiff

public SJDiff()
Constructor for SJDiff.


SJDiff

public SJDiff(JLibDiff.diff d)
Constructor for SJDiff.

Parameters:
d -

SJDiff

public SJDiff(java.util.Vector v)
Constructor for SJDiff.

Parameters:
v -

SJDiff

public SJDiff(java.lang.String s1,
              java.lang.String s2)
       throws java.io.IOException
Constructor for SJDiff.

Parameters:
s1 -
s2 -
Throws:
java.io.IOException
Method Detail

diffTextLineReader

public void diffTextLineReader(TextLineReader current,
                               TextLineReader newFile)
                        throws java.io.IOException,
                               EndOfSourceException
Builds this diff from the two TextLineReader objects.

java.io.IOException
EndOfSourceException

diffTextLineIterator

public void diffTextLineIterator(TextLineIterator current,
                                 TextLineIterator newFile)
                          throws java.io.IOException,
                                 EndOfSourceException
Builds this diff from the two TextLineIterator objects.

java.io.IOException
EndOfSourceException


Copyright © 2003 Soucejammer project.