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.18 2004/05/13 04:06:06 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- HepRepIO.java
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,
InputStream is)
throws IOException
- reads HepRep from a file, xml or ser
If the stream was opened here, it is also closed.
- Throws:
IOException
getHepRepInput
public static Object getHepRepInput(String name,
InputStream is)
throws IOException
- Returns:
- either a Reader (xml), an InputStream (ser) or a ZipInputStream (zip)
- Throws:
IOException
readHepRep
public static HepRep readHepRep(Object input)
throws IOException
- Throws:
IOException
readHepRep
public static HepRep readHepRep(ObjectInputStream objectInputStream)
throws IOException
- Throws:
IOException
readHepRep
public static HepRep readHepRep(InputStream stream)
throws IOException
- Throws:
IOException
writeHepRep
public static void writeHepRep(HepRep heprep,
String name)
throws IOException
- Throws:
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
- Throws:
IOException
Copyright © 2000-2004 FreeHEP, All Rights Reserved.