public final class XIncProcUtils extends Object
XIncProcEngine
.Modifier and Type | Field and Description |
---|---|
static QName |
FALLBACK_QNAME
Fallback element.
|
static String |
XINCLUDE_NAMESPACE_URI
XInclude namespace constant
|
static QName |
XINCLUDE_QNAME
XInclude element
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isFallback(QName qname)
Return if element is a Fallback elementor not
|
static boolean |
isXInclude(QName qname)
Return if element is a Xinclude element or not
|
static boolean |
isXIncludeNamespace(QName qname)
Return if element is in XInclude namespace
|
static String |
readTextURI(URI source,
String encoding,
String accept,
String acceptLanguage)
Read a text source from the
URI |
static URI |
resolveBase(URI baseURI,
Iterable<URI> uris)
|
static URI |
resolveBase(URI baseURI,
Stack<URI> stack)
|
public static final String XINCLUDE_NAMESPACE_URI
public static final QName FALLBACK_QNAME
public static final QName XINCLUDE_QNAME
public static boolean isXIncludeNamespace(QName qname)
qname
- of the element to testpublic static boolean isXInclude(QName qname)
qname
- of the element to testpublic static boolean isFallback(QName qname)
qname
- of the element to testpublic static URI resolveBase(URI baseURI, Iterable<URI> uris)
baseURI
- the base URIuris
- the urispublic static URI resolveBase(URI baseURI, Stack<URI> stack) throws XIncludeFatalException
baseURI
- the base uRIstack
- the stackXIncludeFatalException
- in case of inclusion looppublic static String readTextURI(URI source, String encoding, String accept, String acceptLanguage) throws XIncludeFatalException, XIncludeResourceException
URI
source
- the sourceencoding
- the encoding, if encoding is null an analyse of the source will be done to
find correct encodingaccept
- the acceptacceptLanguage
- the accept languageXIncludeFatalException
- in case of fatal errorXIncludeResourceException
- if source is unreadableCopyright © 2011–2019. All rights reserved.