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
|
|
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 |
swLog
private LogWriter swLog
bw
private java.io.BufferedWriter bw
out
private static java.io.File out
SourceWriter
public SourceWriter(LogWriter log)
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