com.smallx.xml.infoset.sax
Class SAXDocumentLoader

java.lang.Object
  extended bycom.smallx.xml.infoset.sax.SAXDocumentLoader
All Implemented Interfaces:
DocumentLoader

public class SAXDocumentLoader
extends java.lang.Object
implements DocumentLoader


Nested Class Summary
static interface SAXDocumentLoader.XMLReaderInstantiator
           
 
Constructor Summary
SAXDocumentLoader()
           
SAXDocumentLoader(SAXDocumentLoader.XMLReaderInstantiator factory)
           
SAXDocumentLoader(javax.xml.parsers.SAXParserFactory pfactory)
           
 
Method Summary
 void generate(org.xml.sax.InputSource source, ItemDestination dest)
           
 void generate(java.io.Reader source, ItemDestination dest)
           
 void generate(java.io.Reader source, java.net.URI baseURI, ItemDestination dest)
           
 void generate(java.net.URI uri, ItemDestination dest)
           
 Document load(java.io.Reader input)
           
 Document load(java.io.Reader input, java.net.URI baseURI)
           
 Document load(java.net.URI uri)
          Loads a document from a specific location.
 void setInfoset(Infoset infoset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXDocumentLoader

public SAXDocumentLoader()
                  throws javax.xml.parsers.ParserConfigurationException,
                         org.xml.sax.SAXException

SAXDocumentLoader

public SAXDocumentLoader(javax.xml.parsers.SAXParserFactory pfactory)
                  throws javax.xml.parsers.ParserConfigurationException,
                         org.xml.sax.SAXException

SAXDocumentLoader

public SAXDocumentLoader(SAXDocumentLoader.XMLReaderInstantiator factory)
Method Detail

setInfoset

public void setInfoset(Infoset infoset)
Specified by:
setInfoset in interface DocumentLoader

load

public Document load(java.io.Reader input)
              throws java.io.IOException,
                     XMLException
Specified by:
load in interface DocumentLoader
Throws:
java.io.IOException
XMLException

load

public Document load(java.io.Reader input,
                     java.net.URI baseURI)
              throws java.io.IOException,
                     XMLException
Specified by:
load in interface DocumentLoader
Throws:
java.io.IOException
XMLException

load

public Document load(java.net.URI uri)
              throws java.io.IOException,
                     XMLException
Description copied from interface: DocumentLoader
Loads a document from a specific location.

Specified by:
load in interface DocumentLoader
Parameters:
uri - The location of the document.
Returns:
A document instance.
Throws:
java.io.IOException - Thrown when the document cannot be loaded.
XMLException

generate

public void generate(java.net.URI uri,
                     ItemDestination dest)
              throws java.io.IOException,
                     XMLException
Specified by:
generate in interface DocumentLoader
Throws:
java.io.IOException
XMLException

generate

public void generate(java.io.Reader source,
                     java.net.URI baseURI,
                     ItemDestination dest)
              throws java.io.IOException,
                     XMLException
Specified by:
generate in interface DocumentLoader
Throws:
java.io.IOException
XMLException

generate

public void generate(java.io.Reader source,
                     ItemDestination dest)
              throws java.io.IOException,
                     XMLException
Specified by:
generate in interface DocumentLoader
Throws:
java.io.IOException
XMLException

generate

public void generate(org.xml.sax.InputSource source,
                     ItemDestination dest)
              throws java.io.IOException,
                     XMLException
Throws:
java.io.IOException
XMLException