public final class XLoader extends LoaderImpl
Loader
which makes use
of the XInclude 1.1 processor contained in this package.Modifier and Type | Method and Description |
---|---|
Document |
load(InputStream in,
URL url)
Load document from specified input stream.
|
void |
useBothLang()
Use both "xml:lang" and "lang" as
the language attributes.
|
void |
useId()
Use "id" as the ID attribute.
|
void |
useLang()
Use "lang" as the language attribute.
|
void |
useXMLId()
Use "xml:id" as the ID attribute.
|
void |
useXMLLang()
Use "xml:lang" as the language attribute.
|
createXMLReader, format, getConsole, getEntityResolver, isAddingElementPointer, load, load, setAddingElementPointer, setConsole, setEntityResolver
public XLoader()
public XLoader(Console c)
public void useXMLId()
Needed to process XIncludes in loaded pages.
This setting is the default one.
public void useId()
Needed to process XIncludes in loaded pages.
public void useXMLLang()
Needed to process XIncludes in loaded pages.
This setting is the default one.
public void useLang()
Needed to process XIncludes in loaded pages.
public void useBothLang()
Needed to process XIncludes in loaded pages.
public Document load(InputStream in, URL url) throws IOException
Loader
Note: xi:include
elements (XInclude)
are expected to have been processed in the loaded document.
load
in interface Loader
load
in class LoaderImpl
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.