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

Constructor Index

 o GEDCOMOutput(File, File, GenealogyDB)
Constructs a new GEDCOMOutput object for the specified database and files.
 o GEDCOMOutput(File, File, GenealogyDB, boolean)
Constructs a new GEDCOMOutput object for the specified database and files.

Method Index

 o output()
Performs the actual operation of writing the new file.

Constructors

 o 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
 o 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

Methods

 o 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