Package com.xmlmind.domutil
Interface Loader
-
- All Known Implementing Classes:
LoaderImpl
,XLoader
public interface Loader
A W3C DOM document loader service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setConsole
void setConsole(Console c)
Specifies the console on which messages issued during document loading are to be displayed.- Parameters:
c
- the console; may benull
, in which case messages are displayed onSystem.err
andSystem.out
- See Also:
getConsole()
-
getConsole
Console getConsole()
Returns the console on which messages issued during document loading are to be displayed.- See Also:
setConsole(com.xmlmind.util.Console)
-
setEntityResolver
void setEntityResolver(EntityResolver resolver)
Specifies which entity resolver to use when loading an XML document.- Parameters:
resolver
- which resolver to use. May benull
.- See Also:
getEntityResolver()
-
getEntityResolver
EntityResolver getEntityResolver()
Returns the entity resolver being used when loading an XML document. May returnnull
.
-
load
Document load(InputStream in, URL url) throws IOException
Load document from specified input stream.Note:
xi:include
elements (XInclude) are expected to have been processed in the loaded document.- Parameters:
in
- input stream allowing to load the documenturl
- URL of the document to be loaded if known;null
otherwise- Returns:
- loaded document
- Throws:
IOException
- if, for any reason, an I/O exception is raised during the processing. Note that XML parse exception and XInclude exception are reported asIOException
s.
-
-