Package com.xmlmind.domutil
Interface Loader
-
- All Known Implementing Classes:
LoaderImpl,XLoader
public interface LoaderA W3C DOM document loader service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConsolegetConsole()Returns the console on which messages issued during document loading are to be displayed.EntityResolvergetEntityResolver()Returns the entity resolver being used when loading an XML document.Documentload(InputStream in, URL url)Load document from specified input stream.voidsetConsole(Console c)Specifies the console on which messages issued during document loading are to be displayed.voidsetEntityResolver(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.errandSystem.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:includeelements (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;nullotherwise- 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 asIOExceptions.
-
-