|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.graphics.heprep.xml.XMLHepRepReader
Field Summary | |
static String |
cvsId
|
Constructor Summary | |
XMLHepRepReader(InputStream in)
|
|
XMLHepRepReader(String fileName)
|
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). |
static void |
readDefaults()
|
static HepRep |
readHepRep(DefaultHepRep heprep,
InputStream stream)
|
static HepRep |
readHepRep(InputStream stream)
|
void |
reset()
Resets a sequential HepRep reader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String cvsId
Constructor Detail |
public XMLHepRepReader(InputStream in) throws IOException
public XMLHepRepReader(String fileName) throws IOException
Method Detail |
public void close() throws IOException
HepRepReader
close
in interface HepRepReader
IOException
- in case of a stream problem.public boolean hasSequentialAccess() throws IOException
HepRepReader
hasSequentialAccess
in interface HepRepReader
IOException
- in case of a stream problem.public void reset() throws IOException, UnsupportedOperationException
HepRepReader
reset
in interface HepRepReader
UnsupportedOperationException
- if the reader does not support sequential access.
IOException
- in case of a stream problem.public boolean hasNext() throws IOException, UnsupportedOperationException
HepRepReader
hasNext
in interface HepRepReader
IOException
- in case of a stream problem.
UnsupportedOperationException
- if the reader does not support sequential access.public HepRep next() throws IOException, UnsupportedOperationException, NoSuchElementException
HepRepReader
next
in interface HepRepReader
IOException
- in case of a stream problem.
NoSuchElementException
- if the heprep is not available, or EOF.
UnsupportedOperationException
- if the reader does not support sequential access.public boolean hasRandomAccess()
HepRepReader
hasRandomAccess
in interface HepRepReader
public HepRep read(String name) throws IOException, UnsupportedOperationException, NoSuchElementException
HepRepReader
read
in interface HepRepReader
name
- for the heprep to be read.
UnsupportedOperationException
- if the reader does not support random access.
IOException
- in case of a stream problem.
NoSuchElementException
- if the heprep is not available.public static void readDefaults() throws IOException
IOException
public static HepRep readHepRep(InputStream stream) throws IOException
IOException
public static HepRep readHepRep(DefaultHepRep heprep, InputStream stream) throws IOException
IOException
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |