FreeHEP API
Version v1.2.2

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

Field Summary
static String cvsId
           
 
Method Summary
static Object getHepRepInput(String name, InputStream is)
           
static HepRep readHepRep(InputStream stream)
           
static HepRep readHepRep(Object input)
           
static HepRep readHepRep(ObjectInputStream objectInputStream)
           
static HepRep readHepRep(String name)
           
static HepRep readHepRep(String name, InputStream is)
          reads HepRep from a file, xml or ser If the stream was opened here, it is also closed.
static void writeHepRep(HepRep heprep, String name)
           
static OutputStream writeHepRep(HepRep heprep, String name, OutputStream os)
          Writes a HepRep to a file, xml, ser or zip (use !
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final String cvsId
See Also:
Constant Field Values
Method Detail

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

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.