Class GEDCOMOutput
java.lang.Object
|
+----GEDCOMOutput
- public class GEDCOMOutput
- extends Object
This class writes a GEDCOM file with the same
contents as a specified input file, only that dates are changed
or added based on a specified database.
- Author:
- Vegard Brox
-
GEDCOMOutput(File, File, GenealogyDB)
- Constructs a new GEDCOMOutput object for the specified
database and files.
-
GEDCOMOutput(File, File, GenealogyDB, boolean)
- Constructs a new GEDCOMOutput object for the specified
database and files.
-
output()
- Performs the actual operation of writing the new file.
GEDCOMOutput
public GEDCOMOutput(File inputFile,
File outputFile,
GenealogyDB database) throws IOException
- Constructs a new GEDCOMOutput object for the specified
database and files. Included header information in output file.
- Parameters:
- inputFile - The original GEDCOM file
- outputFile - The new GEDCOM file (will be overwritten if it exists)
- database - The database to get estimated dates from
- Throws: IOException
- If one of the files are not accessible
GEDCOMOutput
public GEDCOMOutput(File inputFile,
File outputFile,
GenealogyDB database,
boolean keepDates) throws IOException
- Constructs a new GEDCOMOutput object for the specified
database and files.
- Parameters:
- inputFile - The original GEDCOM file
- outputFile - The new GEDCOM file (will be overwritten if it exists)
- database - The database to get estimated dates from
- keepDates - True if the dates from the input file should be written
unchanged to output
- Throws: IOException
- If one of the files are not accessible
output
public void output() throws IOException
- Performs the actual operation of writing the new file.
- Throws: IOException
- If there is a problem with
reading or writing files