uk.ac.starlink.ast.xml
Class XAstReader
java.lang.Object
uk.ac.starlink.ast.xml.XAstReader
public class XAstReader
- extends Object
Provides convenience methods for reading an AstObject from an
XML source. The hard work is done by XmlChan
.
- Author:
- Mark Taylor (Starlink)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XAstReader
public XAstReader()
makeAst
public AstObject makeAst(Element el)
throws IOException
- Constructs an AstObject from an Element.
- Parameters:
el
- the Element to transform
- Returns:
- the AstObject constructed from el
- Throws:
IOException
- if el does not have the correct
structure to be an AstObject
makeAst
public AstObject makeAst(Source xsrc)
throws IOException
- Constructs an AstObject from an XML Source.
- Parameters:
xsrc
- the XML Source to transform
- Returns:
- the AstObject constructed from xsrc
- Throws:
IOException
- if xsrc does not have the right
structure to be an AstObject
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.