|
FreeHEP API Version v1.2.2 |
|||||||||
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. |
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. |
Method Detail |
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 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 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 v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |