org.planx.xmlstore.convert
Class SAXBuilder

java.lang.Object
  extended by org.planx.xmlstore.convert.SAXBuilder

public class SAXBuilder
extends Object

Author:
Kasper Bøgebjerg, Henning Niss, Thomas Ambus

Method Summary
static Node build(InputSource in)
          Loads an XML document from an InputSource.
static Node build(InputSource in, NodeListener listener)
           
static Node build(InputSource in, XMLStore xmlstore)
          Loads an XML document from an InputSource and saves it in XMLStore during loading.
static Node build(String fileName)
          Loads an XML document from a file.
static Node build(String fileName, NodeListener listener)
           
static Node build(String fileName, XMLStore xmlstore)
          Loads an XML document from a file and saves it in XMLStore during loading.
static Node build(String fileName, XMLStore xmlstore, int flushDepth)
          Loads an XML document from a file and saves it in XMLStore during loading.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public static Node build(String fileName)
                  throws XMLException,
                         IOException
Loads an XML document from a file.

Throws:
XMLException
IOException

build

public static Node build(String fileName,
                         XMLStore xmlstore)
                  throws XMLException,
                         IOException
Loads an XML document from a file and saves it in XMLStore during loading.

Throws:
XMLException
IOException

build

public static Node build(String fileName,
                         XMLStore xmlstore,
                         int flushDepth)
                  throws XMLException,
                         IOException
Loads an XML document from a file and saves it in XMLStore during loading. Saves will be done at every depth from the root down to the specified flush depth.

Throws:
XMLException
IOException

build

public static Node build(String fileName,
                         NodeListener listener)
                  throws XMLException,
                         IOException
Throws:
XMLException
IOException

build

public static Node build(InputSource in)
                  throws XMLException,
                         IOException
Loads an XML document from an InputSource.

Throws:
XMLException
IOException

build

public static Node build(InputSource in,
                         XMLStore xmlstore)
                  throws XMLException,
                         IOException
Loads an XML document from an InputSource and saves it in XMLStore during loading.

Throws:
XMLException
IOException

build

public static Node build(InputSource in,
                         NodeListener listener)
                  throws XMLException,
                         IOException
Throws:
XMLException
IOException


Copyright © 2010. All Rights Reserved.