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

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

import org.freehep.util.*;

import hep.graphics.heprep.*;
import hep.graphics.heprep.ref.*;

/**
 *
 * @author Mark Donszelmann
 *
 * @version $Id: XMLHepRepFactory.java,v 1.1 2003/06/28 20:45:40 duns Exp $
 */

public class XMLHepRepFactory extends DefaultHepRepFactory {
    public static final String cvsId = "$Id: XMLHepRepFactory.java,v 1.1 2003/06/28 20:45:40 duns Exp $";

    public XMLHepRepFactory() {
    }

    public HepRepReader createHepRepReader(InputStream in) throws IOException {
        return new XMLHepRepReader(in);
    }

    public HepRepReader createHepRepReader(String inputFileName) throws IOException {
        return new XMLHepRepReader(inputFileName);
    }

    public HepRepWriter createHepRepWriter(OutputStream out, boolean randomAccess, boolean compress) throws IOException {
        return new XMLHepRepWriter(out, randomAccess, compress);
    }
}
