JLibDiff
Class Builder

java.lang.Object
  |
  +--JLibDiff.Builder

public class Builder
extends java.lang.Object

Title: $FileName: Builder.java$

Version:
$VerNum: 6$ $KeyWordsOff: $

Static methods for building diffs from text and vice-versa.
Author:
$AuthorName: Rob MacGrogan$

Nested Class Summary
private static class Builder.BuildHunkResult
           
 
Constructor Summary
Builder()
           
 
Method Summary
static diff buildDiff(java.io.File diffFile)
           
static diff buildDiff(java.io.Reader reader)
           
static diff buildDiff(java.lang.String s)
           
private static Builder.BuildHunkResult buildHunkAdd(java.lang.String firstLine, BufferedLineReader reader)
           
private static Builder.BuildHunkResult buildHunkChange(java.lang.String firstLine, BufferedLineReader reader)
           
private static Builder.BuildHunkResult buildHunkDel(java.lang.String firstLine, BufferedLineReader reader)
           
static java.lang.String buildHunkString(HunkAdd h)
           
static java.lang.String buildHunkString(HunkChange h)
           
static java.lang.String buildHunkString(HunkDel h)
           
private static int intValue(java.lang.String s)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Builder

public Builder()
Method Detail

buildHunkString

public static java.lang.String buildHunkString(HunkAdd h)

buildHunkString

public static java.lang.String buildHunkString(HunkDel h)

buildHunkString

public static java.lang.String buildHunkString(HunkChange h)

buildDiff

public static diff buildDiff(java.io.File diffFile)
                      throws DiffFormatException,
                             java.io.IOException
DiffFormatException
java.io.IOException

buildDiff

public static diff buildDiff(java.lang.String s)
                      throws DiffFormatException
DiffFormatException

buildDiff

public static diff buildDiff(java.io.Reader reader)
                      throws DiffFormatException
DiffFormatException

buildHunkAdd

private static Builder.BuildHunkResult buildHunkAdd(java.lang.String firstLine,
                                                    BufferedLineReader reader)
                                             throws DiffFormatException
DiffFormatException

buildHunkDel

private static Builder.BuildHunkResult buildHunkDel(java.lang.String firstLine,
                                                    BufferedLineReader reader)
                                             throws DiffFormatException
DiffFormatException

buildHunkChange

private static Builder.BuildHunkResult buildHunkChange(java.lang.String firstLine,
                                                       BufferedLineReader reader)
                                                throws DiffFormatException
DiffFormatException

main

public static void main(java.lang.String[] args)

intValue

private static int intValue(java.lang.String s)
                     throws DiffFormatException
DiffFormatException


Copyright 2003 Soucejammer project.