// Copyright 2000-2003, FreeHEP.
package hep.graphics.heprep.jni;

import java.io.*;
import java.util.zip.*;

import hep.graphics.heprep.HepRep;
import hep.graphics.heprep.HepRepFactory;
import hep.graphics.heprep.ref.DefaultHepRepFactory;
import hep.graphics.heprep.xml.XMLHepRepWriter;

/**
 * Methods to deal with the IO from C++, catching most exceptions.
 *
 * @author M.Donszelmann
 *
 * @version $Id: HepRepIO.java,v 1.8 2003/12/02 23:46:22 duns Exp $
 */

public class HepRepIO {
    public static final String cvsId = "$Id: HepRepIO.java,v 1.8 2003/12/02 23:46:22 duns Exp $";

    public static HepRepFactory getFactory() {
        try {
            return DefaultHepRepFactory.create();
        } catch (Exception e) {
            System.err.println(e);
        }
        return null;
    }

}
