|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fmrisc.External.NewOMDOMReader
public final class NewOMDOMReader
An OpenMath DOM reader.
Constructor Summary | |
---|---|
NewOMDOMReader(org.w3c.dom.Document document)
Constructor. |
|
NewOMDOMReader(org.w3c.dom.DocumentFragment fragment)
Constructor. |
|
NewOMDOMReader(org.xml.sax.InputSource inputSource)
Constructor. |
|
NewOMDOMReader(org.w3c.dom.Node node)
Constructor. |
|
NewOMDOMReader(java.lang.String string)
Constructor. |
Method Summary | |
---|---|
nl.tue.win.riaca.openmath.lang.OMObject |
readObject()
Read an OpenMath object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NewOMDOMReader(org.w3c.dom.Document document)
document
- the document to read using the reader.public NewOMDOMReader(org.w3c.dom.DocumentFragment fragment)
fragment
- the document fragment to read using the reader.public NewOMDOMReader(org.w3c.dom.Node node)
node
- the node to read using the reader.public NewOMDOMReader(org.xml.sax.InputSource inputSource)
inputSource
- the InputSource to read from using this reader.public NewOMDOMReader(java.lang.String string)
string
- the string to read from using this reader.Method Detail |
---|
public nl.tue.win.riaca.openmath.lang.OMObject readObject() throws java.io.IOException
1. If we are a document then get the nodelist that contains an OMOBJ. Take the first of the list and read that object. 2. Or if we are a document fragment assume the first child is the OMObject. 3. Or just assume the node contains the OMObject.
java.io.IOException
- when a problem arises while reading.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |