|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xmlmind.domutil.LoaderImpl
public class LoaderImpl
An implementation of Loader making use by default of the built-in
XInclude processor (possibly XInclude 1.0, not 1.1; possibly limited)
of the XML parser.
| Constructor Summary | |
|---|---|
LoaderImpl()
|
|
LoaderImpl(boolean xincludeAware,
Console c)
|
|
| Method Summary | |
|---|---|
static org.xml.sax.XMLReader |
createXMLReader(boolean xincludeAware)
|
static java.lang.String |
format(org.xml.sax.SAXParseException e)
|
ConsoleHelper |
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. |
static boolean |
isAddingElementPointer()
Not part of the public, documented, API: returns true
if element XPath pointers are added to NodeLocations during
the loading of XML documents. |
org.w3c.dom.Document |
load(java.io.File file)
|
org.w3c.dom.Document |
load(java.io.InputStream in,
java.net.URL url)
Load document from specified input stream. |
org.w3c.dom.Document |
load(java.net.URL url)
|
static void |
setAddingElementPointer(boolean add)
Not part of the public, documented, API: specifies whether to add element XPath pointers to NodeLocations during
the loading of XML documents. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoaderImpl()
public LoaderImpl(boolean xincludeAware,
Console c)
| Method Detail |
|---|
public static void setAddingElementPointer(boolean add)
NodeLocations during
the loading of XML documents.
This facility is needed to implement XXE's Check Assembly.
isAddingElementPointer()public static boolean isAddingElementPointer()
true
if element XPath pointers are added to NodeLocations during
the loading of XML documents.
This facility is needed to implement XXE's Check Assembly.
setAddingElementPointer(boolean)public void setConsole(Console c)
Loader
setConsole in interface Loaderc - the console; may be null, in which case messages
are displayed on System.err and System.outLoader.getConsole()public ConsoleHelper getConsole()
Loader
getConsole in interface LoaderLoader.setConsole(com.xmlmind.util.Console)public void setEntityResolver(org.xml.sax.EntityResolver resolver)
Loader
setEntityResolver in interface Loaderresolver - which resolver to use. May be null.Loader.getEntityResolver()public org.xml.sax.EntityResolver getEntityResolver()
Loadernull.
getEntityResolver in interface LoaderLoader.setEntityResolver(org.xml.sax.EntityResolver)
public org.w3c.dom.Document load(java.io.File file)
throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document load(java.net.URL url)
throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document load(java.io.InputStream in,
java.net.URL url)
throws java.io.IOException
LoaderNote: xi:include elements (XInclude)
are expected to have been processed in the loaded document.
load in interface Loaderin - 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.public static org.xml.sax.XMLReader createXMLReader(boolean xincludeAware)
public static final java.lang.String format(org.xml.sax.SAXParseException e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||