Gedomc-Lib is a Java parser for GEDCOM files.

This software is distributed under the GPLv3 license.

The source code is hosted at github: https://github.com/cmosher01/Gedcom-Lib

import java.io.File;
import nu.mine.mosher.gedcom.Gedcom;
import nu.mine.mosher.gedcom.GedcomTree;
import nu.mine.mosher.gedcom.model.Loader;
...

    void load(final File fileGedcom ) {
        final GedcomTree gt = Gedcom.parseFile(fileGedcom);
        final Loader loader = new Loader(gt,fileGedcom.getName());
        loader.parse();
    }