hep.graphics.heprep.util
Class HepRepIO
java.lang.Object
|
+--hep.graphics.heprep.util.HepRepIO
- public class HepRepIO
- extends Object
- Version:
- $Id: HepRepIO.java,v 1.16 2003/12/09 22:59:55 duns Exp $
- Author:
- Mark Donszelmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cvsId
public static final String cvsId
- See Also:
- Constant Field Values
readHepRep
public static HepRep readHepRep(String name)
throws IOException
IOException
readHepRep
public static HepRep readHepRep(String name,
InputStream is)
throws IOException
- reads HepRep from a file, xml or ser
If the stream was opened here, it is also closed.
IOException
getHepRepInput
public static Object getHepRepInput(String name,
InputStream is)
throws IOException
- Returns:
- either a Reader (xml), an InputStream (ser) or a ZipInputStream (zip)
IOException
readHepRep
public static HepRep readHepRep(Object input)
throws IOException
IOException
readHepRep
public static HepRep readHepRep(ObjectInputStream objectInputStream)
throws IOException
IOException
readHepRep
public static HepRep readHepRep(InputStream stream)
throws IOException
IOException
writeHepRep
public static void writeHepRep(HepRep heprep,
String name)
throws IOException
IOException
writeHepRep
public static OutputStream writeHepRep(HepRep heprep,
String name,
OutputStream os)
throws IOException
- Writes a HepRep to a file, xml, ser or zip (use ! point to specify entry name).
- Returns:
- the open output stream
IOException
Copyright © 2000-2003 FreeHEP, All Rights Reserved.