| 
 | FreeHEP API Version current | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
HepRepReader interface.
| Method Summary | |
|  void | close()Closes the reader and its underlying stream. | 
|  String | entryName()Returns the current entry name (random acces only). | 
|  List | entryNames()Returns a list of names of available entries (random rccess only). | 
|  String | getProperty(String key,
            String defaultValue)Returns a property (if set in the heprep.properties file). | 
|  boolean | hasNext()Is there a next heprep. | 
|  boolean | hasRandomAccess()Allows random access. | 
|  boolean | hasSequentialAccess()Allows for sequential access. | 
|  HepRep | next()Reads the next HepRep from the Reader. | 
|  HepRep | read(String name)Reads a HepRep by name (random access only). | 
|  void | reset()Resets a sequential HepRep reader. | 
|  int | size()Returns the (estimated) number of HepReps in the reader. | 
|  int | skip(int n)Skips a number of HepReps in the reader. | 
| Method Detail | 
public String getProperty(String key,
                          String defaultValue)
                   throws IOException
key - property namedefaultValue - value if property not found
IOException - in case of a stream problem.
public void close()
           throws IOException
IOException - in case of a stream problem.
public boolean hasRandomAccess()
                        throws IOException
IOException - in case of a stream problem.
public HepRep read(String name)
            throws IOException,
                   UnsupportedOperationException,
                   NoSuchElementException
name - for the heprep to be read.
IOException - in case of a stream problem.
UnsupportedOperationException - if the reader does not support random access.
NoSuchElementException - if the heprep is not available.public String entryName()
public List entryNames()
public boolean hasSequentialAccess()
                            throws IOException
IOException - in case of a stream problem.
public void reset()
           throws IOException,
                  UnsupportedOperationException
IOException - in case of a stream problem.
UnsupportedOperationException - if the reader does not support sequential access.public int size()
public int skip(int n)
         throws UnsupportedOperationException
n - number of HepReps to be skipped.
UnsupportedOperationException - if the reader does not support sequential access.
public boolean hasNext()
                throws IOException,
                       UnsupportedOperationException
UnsupportedOperationException - if the reader does not support sequential access.
IOException - in case of a stream problem.
public HepRep next()
            throws IOException,
                   UnsupportedOperationException,
                   NoSuchElementException
IOException - in case of a stream problem.
UnsupportedOperationException - if the reader does not support sequential access.
NoSuchElementException - if the heprep is not available, or EOF.| 
 | FreeHEP API Version current | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||