public static void save(Pedigree pedigree, Path pedigreePath) throws IOException {
        final OutputStream os = new FileOutputStream(pedigreePath.toFile());
        // Sanity check
        if (pedigree != null) {
            writeHeader(pedigree, os);
            write(pedigree, os);
        }
        // Close
        os.close();
    }
public static void save ( Pedigree pedigree , Path pedigreePath ) throws IOException { final OutputStream os = new FileOutputStream ( pedigreePath . toFile ( ) ) ; if ( pedigree != null ) { writeHeader ( pedigree , os ) ; write ( pedigree , os ) ; } os . close ( ) ; }
Save a Pedigree object into a Pedigree format file.

@param pedigree      Pedigree object
@param pedigreePath  Path to the Pedigree file