Package org.gedcom4j.io

Examples of org.gedcom4j.io.GedcomFileReader


        gw.write(tempFile);

        FileInputStream byteStream = null;
        try {
            byteStream = new FileInputStream(tempFile);
            GedcomFileReader gfr = new GedcomFileReader(new BufferedInputStream(byteStream));
            readbackLines = gfr.getLines();
        } finally {
            if (byteStream != null) {
                byteStream.close();
            }
        }
View Full Code Here


     * @return the lines of the file
     * @throws IOException
     *             if the file can't be read
     */
    private List<String> readBack(File fileToRead) throws IOException {
        GedcomFileReader gfr = new GedcomFileReader(new BufferedInputStream(new FileInputStream(fileToRead)));
        return gfr.getLines();
    }
View Full Code Here

     * @return the {@link StringTree} created from the contents of the input stream
     * @throws IOException
     *             if there is a problem reading the data from the reader
     */
    private static StringTree makeStringTreeFromStream(BufferedInputStream bytes) throws IOException {
        List<String> lines = new GedcomFileReader(bytes).getLines();
        StringTree result = new StringTree();
        result.level = -1;
        try {
            for (int lineNum = 1; lineNum <= lines.size(); lineNum++) {
                String line = lines.get(lineNum - 1);
View Full Code Here

TOP

Related Classes of org.gedcom4j.io.GedcomFileReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.