genealogy.parser
Class SourceWriter

java.lang.Object
  |
  +--genealogy.parser.SourceWriter

public class SourceWriter
extends java.lang.Object


Field Summary
private  java.io.BufferedWriter bw
           
private static java.io.File out
           
private  LogWriter swLog
           
 
Constructor Summary
SourceWriter(LogWriter log)
           
 
Method Summary
 boolean closeOut()
          Closes and flushes the buffered output stream.
 java.io.File getOutFile()
          Method returns the current out file.
 boolean openOut(java.io.File outFile)
           
 boolean writeOut(java.lang.String s)
          Writes a String given as a parameter to the SQL dump file.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

swLog

private LogWriter swLog

bw

private java.io.BufferedWriter bw

out

private static java.io.File out
Constructor Detail

SourceWriter

public SourceWriter(LogWriter log)
Method Detail

openOut

public boolean openOut(java.io.File outFile)

writeOut

public boolean writeOut(java.lang.String s)
Writes a String given as a parameter to the SQL dump file.
Parameters:
String - s line to write
Returns:
boolean true, if writing was succesfull

getOutFile

public java.io.File getOutFile()
Method returns the current out file.
Returns:
File current out file being written

closeOut

public boolean closeOut()
Closes and flushes the buffered output stream.
Returns:
boolean true, if file closed succesfully