|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Loader
A W3C DOM document loader service.
| Method Summary | |
|---|---|
Console |
getConsole()
Returns the console on which messages issued during document loading are to be displayed. |
org.xml.sax.EntityResolver |
getEntityResolver()
Returns the entity resolver being used when loading an XML document. |
org.w3c.dom.Document |
load(java.io.InputStream in,
java.net.URL url)
Load document from specified input stream. |
void |
setConsole(Console c)
Specifies the console on which messages issued during document loading are to be displayed. |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Specifies which entity resolver to use when loading an XML document. |
| Method Detail |
|---|
void setConsole(Console c)
c - the console; may be null, in which case messages
are displayed on System.err and System.outgetConsole()Console getConsole()
setConsole(com.xmlmind.util.Console)void setEntityResolver(org.xml.sax.EntityResolver resolver)
resolver - which resolver to use. May be null.getEntityResolver()org.xml.sax.EntityResolver getEntityResolver()
null.
setEntityResolver(org.xml.sax.EntityResolver)
org.w3c.dom.Document load(java.io.InputStream in,
java.net.URL url)
throws java.io.IOException
Note: xi:include elements (XInclude)
are expected to have been processed in the loaded document.
in - input stream allowing to load the documenturl - URL of the document to be loaded if known;
null otherwise
java.io.IOException - if, for any reason, an I/O exception is
raised during the processing.
Note that XML parse exception and XInclude exception are reported
as IOExceptions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||