org.planx.xmlstore.input
Class SAXBuilder

java.lang.Object
  extended by org.planx.xmlstore.input.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, boolean doStripWhiteSpace)
          Loads an XML document from an InputSource.
static Node build(InputSource in, NodeListener listener, boolean doStripWhiteSpace)
           
static
<R extends Reference>
Node
build(InputSource in, XMLStore<R> xmlstore)
          Loads an XML document from an InputSource and saves it in XMLStore during loading.
static
<R extends Reference>
Node
build(InputSource in, XMLStore<R> xmlstore, boolean doStripWhiteSpace, int flushDepth)
           
static Node build(InputSource in, XMLStore<Reference> xmlstore, boolean doStripWhiteSpace)
          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, boolean doStripWhiteSpace)
          Loads an XML document from a file.
static Node build(String fileName, NodeListener listener, boolean doStripWhiteSpace)
           
static
<R extends Reference>
Node
build(String fileName, XMLStore<R> xmlstore)
          Loads an XML document from a file and saves it in XMLStore during loading.
static
<R extends Reference>
Node
build(String fileName, XMLStore<R> xmlstore, boolean doStripWhiteSpace)
          Loads an XML document from a file and saves it in XMLStore during loading.
static
<R extends Reference>
Node
build(String fileName, XMLStore<R> xmlstore, boolean doStripWhiteSpace, int flushDepth)
          Loads an XML document from a file and saves it in XMLStore during loading.
 
Methods inherited from class java.lang.Object
equals, 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,
                         boolean doStripWhiteSpace)
                  throws XMLException,
                         IOException
Loads an XML document from a file.

Throws:
XMLException
IOException

build

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

Throws:
XMLException
IOException

build

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

Throws:
XMLException
IOException

build

public static <R extends Reference> Node build(String fileName,
                                               XMLStore<R> xmlstore,
                                               boolean doStripWhiteSpace,
                                               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,
                         boolean doStripWhiteSpace)
                  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,
                         boolean doStripWhiteSpace)
                  throws XMLException,
                         IOException
Loads an XML document from an InputSource.

Throws:
XMLException
IOException

build

public static <R extends Reference> Node build(InputSource in,
                                               XMLStore<R> 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,
                         XMLStore<Reference> xmlstore,
                         boolean doStripWhiteSpace)
                  throws XMLException,
                         IOException
Loads an XML document from an InputSource and saves it in XMLStore during loading.

Throws:
XMLException
IOException

build

public static <R extends Reference> Node build(InputSource in,
                                               XMLStore<R> xmlstore,
                                               boolean doStripWhiteSpace,
                                               int flushDepth)
                  throws XMLException,
                         IOException
Throws:
XMLException
IOException

build

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


Copyright © 2004-2005 Plan-X. All Rights Reserved.