com.smallx.xml.infoset
Interface DocumentLoader

All Known Implementing Classes:
SAXDocumentLoader

public interface DocumentLoader

This interface repesents a processor that is able to load document instances from a URI. If the document cannot be loaded for any reason, this interface must throw an exception.


Method Summary
 void generate(java.io.Reader input, ItemDestination receiver)
           
 void generate(java.io.Reader input, java.net.URI baseURI, ItemDestination receiver)
           
 void generate(java.net.URI location, ItemDestination receiver)
           
 Document load(java.io.Reader input)
           
 Document load(java.io.Reader input, java.net.URI baseURI)
           
 Document load(java.net.URI location)
          Loads a document from a specific location.
 void setInfoset(Infoset infoset)
           
 

Method Detail

setInfoset

public void setInfoset(Infoset infoset)

load

public Document load(java.net.URI location)
              throws java.io.IOException,
                     XMLException
Loads a document from a specific location.

Parameters:
location - The location of the document.
Returns:
A document instance.
Throws:
java.io.IOException - Thrown when the document cannot be loaded.
XMLException

load

public Document load(java.io.Reader input)
              throws java.io.IOException,
                     XMLException
Throws:
java.io.IOException
XMLException

load

public Document load(java.io.Reader input,
                     java.net.URI baseURI)
              throws java.io.IOException,
                     XMLException
Throws:
java.io.IOException
XMLException

generate

public void generate(java.net.URI location,
                     ItemDestination receiver)
              throws java.io.IOException,
                     XMLException
Throws:
java.io.IOException
XMLException

generate

public void generate(java.io.Reader input,
                     ItemDestination receiver)
              throws java.io.IOException,
                     XMLException
Throws:
java.io.IOException
XMLException

generate

public void generate(java.io.Reader input,
                     java.net.URI baseURI,
                     ItemDestination receiver)
              throws java.io.IOException,
                     XMLException
Throws:
java.io.IOException
XMLException