IMSEVimse 1.0
Draft

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.
 
Method Summary
 XmlDocument parse(InputStream is)
          Parses the document in the given InputStream.
 XmlDocument parse(Reader reader)
          Parses the document in the given Reader.
 XmlDocument parse(URL url)
          Parses the document in the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlLoader

public XmlLoader(Catalog catalog)
Constructs an XmlLoader that uses the given catalog.
Parameters:
catalog - the catalog to use. May be null.
Method Detail

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.

IMSEVimse 1.0
Draft

Centre for user-oriented IT -design