com.smallx.xml.infoset.sax
Class SAXDocumentLoader
java.lang.Object
com.smallx.xml.infoset.sax.SAXDocumentLoader
- All Implemented Interfaces:
- DocumentLoader
- public class SAXDocumentLoader
- extends java.lang.Object
- implements DocumentLoader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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