JLibDiff
Class JLibDiffAlgorithm

java.lang.Object
  |
  +--JLibDiff.JLibDiffAlgorithm
All Implemented Interfaces:
define, DiffAlgorithm

public class JLibDiffAlgorithm
extends java.lang.Object
implements DiffAlgorithm, define

Title: $FileName: JLibDiffAlgorithm.java$

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

$Description: JLibDiff diff algorithm.$
$KeyWordsOff: $

Implements the JLibDiff diff algorithm, abstracted from the diff class. This algorithm is available under GLPL.

Field Summary
private  java.lang.String eol
           
 
Fields inherited from interface JLibDiff.define
DELETE, INSERT, MAXLINES, ORIGIN
 
Constructor Summary
JLibDiffAlgorithm()
           
 
Method Summary
 java.lang.String getEol()
          Returns the eol.
private static java.util.Vector getHunk(edit start, java.lang.String[] A, java.lang.String[] B, java.lang.String sEOL)
           
 java.util.Vector makeDiff(java.lang.String[] A, java.lang.String[] B)
           
 void setEol(java.lang.String eol)
          Sets the eol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eol

private java.lang.String eol
Constructor Detail

JLibDiffAlgorithm

public JLibDiffAlgorithm()
Method Detail

makeDiff

public java.util.Vector makeDiff(java.lang.String[] A,
                                 java.lang.String[] B)
Specified by:
makeDiff in interface DiffAlgorithm
See Also:
DiffAlgorithm.makeDiff(String[], String[])

getHunk

private static java.util.Vector getHunk(edit start,
                                        java.lang.String[] A,
                                        java.lang.String[] B,
                                        java.lang.String sEOL)

getEol

public java.lang.String getEol()
Returns the eol.

Returns:
String

setEol

public void setEol(java.lang.String eol)
Sets the eol.

Specified by:
setEol in interface DiffAlgorithm
Parameters:
eol - The eol to set


Copyright 2003 Soucejammer project.