se.kth.cid.xml
Class XmlLoader
java.lang.Object
|
+--se.kth.cid.xml.XmlLoader
- public class XmlLoader
- extends Object
This class handles the loading of XML documents.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Mikael Nilsson
Constructor Summary |
XmlLoader(Catalog catalog)
Constructs an XmlLoader that uses the given catalog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlLoader
public XmlLoader(Catalog catalog)
- Constructs an XmlLoader that uses the given catalog.
- Parameters:
catalog
- the catalog to use. May be null.
parse
public XmlDocument parse(URL url)
throws XmlLoaderException
- Parses the document in the given URL.
- Parameters:
url
- the URL of the document to parse.- Returns:
- the parsed document.
- Throws:
XmlLoaderException
- if something goes wrong when parsing.
parse
public XmlDocument parse(InputStream is)
throws XmlLoaderException
- Parses the document in the given InputStream.
- Parameters:
is
- the InputStream containing the document to parse.- Returns:
- the parsed document.
- Throws:
XmlLoaderException
- if something goes wrong when parsing.
parse
public XmlDocument parse(Reader reader)
throws XmlLoaderException
- Parses the document in the given Reader.
- Parameters:
reader
- the Reader containing the document to parse.- Returns:
- the parsed document.
- Throws:
XmlLoaderException
- if something goes wrong when parsing.
Centre for user-oriented IT -design