wt.tools.generation.language
Class MergableWriterFile

java.lang.Object
  extended byjava.io.Writer
      extended bywt.util.OutputFile
          extended bywt.tools.generation.language.MergableWriterFile
Direct Known Subclasses:
ClassWriterFile

public class MergableWriterFile
extends OutputFile


Field Summary
protected  Vector outputEntities
           
 
Fields inherited from class wt.util.OutputFile
allInstances, backup, encoding, fileName, keepBackup, mergeFileName, readOnlyWarning, removeMergeFile, writeMode, writer
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
protected MergableWriterFile()
           
 
Method Summary
 void addOutput(MergableWriter output)
           
static MergableWriterFile get(String theFileName, Class fileType)
           
protected  boolean mergePreparation(File file)
          Perform necessary preparations for merging with the File.
 void write()
           
protected  void writeFooter()
           
protected  void writeHeader()
           
 
Methods inherited from class wt.util.OutputFile
backUpName, close, close, createBackupFile, ensureDirectoryExists, flush, get, getAllFiles, getFileName, getMergeFileName, getWriteMode, getWriter, open, print, println, restoreBackupFile, setEncoding, setFileName, setMergeFileName, setRemoveMergeFile, setWriteMode, toString, write
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

outputEntities

protected Vector outputEntities
Constructor Detail

MergableWriterFile

protected MergableWriterFile()
Method Detail

addOutput

public void addOutput(MergableWriter output)

get

public static MergableWriterFile get(String theFileName,
                                     Class fileType)

mergePreparation

protected boolean mergePreparation(File file)
Description copied from class: OutputFile
Perform necessary preparations for merging with the File. This method just returns true, but exists as a means of sub-classes providing specific merge preparation behavior.

Overrides:
mergePreparation in class OutputFile
Parameters:
file - the File which will be merged.
Returns:
true if it succeeds, otherwise return false

write

public void write()

writeFooter

protected void writeFooter()

writeHeader

protected void writeHeader()