public interface Loader
Modifier and Type | Method and Description |
---|---|
Console |
getConsole()
Returns the console on which messages issued during document loading
are to be displayed.
|
EntityResolver |
getEntityResolver()
Returns the entity resolver being used when loading an XML document.
|
Document |
load(InputStream in,
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(EntityResolver resolver)
Specifies which entity resolver to use when loading an XML document.
|
void setConsole(Console c)
c
- the console; may be null
, in which case messages
are displayed on System.err
and System.out
getConsole()
Console getConsole()
setConsole(com.xmlmind.util.Console)
void setEntityResolver(EntityResolver resolver)
resolver
- which resolver to use. May be null
.getEntityResolver()
EntityResolver getEntityResolver()
null
.Document load(InputStream in, URL url) throws 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
otherwiseIOException
- if, for any reason, an I/O exception is
raised during the processing.
Note that XML parse exception and XInclude exception are reported
as IOException
s.