org.jaffa.tools.patternengine
Class SourceMerge

java.lang.Object
  extended byorg.jaffa.tools.patternengine.SourceMerge

public class SourceMerge
extends Object

This class is used for merging an existing file with a new code generated file. It will merge the GuardedBorder contents (i.e the custom code) of the existing file into the new file.


Constructor Summary
SourceMerge()
           
 
Method Summary
static String performMerge(BufferedReader newTemplate, BufferedReader existingFile)
          Merges the existing File into the new code generated file returning the contents as a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceMerge

public SourceMerge()
Method Detail

performMerge

public static String performMerge(BufferedReader newTemplate,
                                  BufferedReader existingFile)
                           throws IOException,
                                  SourceDecomposerException
Merges the existing File into the new code generated file returning the contents as a String

Parameters:
newTemplate - the new code generated file.
existingFile - the existing file.
Returns:
the merged contents.
Throws:
IOException - if any IO error occurs.
SourceDecomposerException - if the file is malformed or if it cannot be decomposed.


Copyright © 2002-2004 JAFFA Project.