public abstract class UnparsedTextFunction extends SystemFunction
| Constructor and Description |
|---|
UnparsedTextFunction() |
| Modifier and Type | Method and Description |
|---|---|
static URI |
getAbsoluteURI(String href,
String baseURI,
XPathContext context) |
int |
getSpecialProperties(Expression[] arguments)
Determine the special properties of this function.
|
static XPathException |
handleIOError(URI absoluteURI,
IOException ioErr,
XPathContext context) |
static CharSequence |
readFile(IntPredicate checker,
Reader reader)
Read the contents of an unparsed text file
|
static CharSequence |
readFile(URI absoluteURI,
String encoding,
XPathContext context)
Supporting routine to load one external file given a URI (href) and a baseURI
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitargumentArray, call, getGenregetLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValueasIterable, materializemakeRepeatableforEach, spliteratorpublic int getSpecialProperties(Expression[] arguments)
SystemFunctiongetSpecialProperties in class SystemFunctionarguments - the actual arguments supplied in a call to the functionpublic static CharSequence readFile(URI absoluteURI, String encoding, XPathContext context) throws XPathException
absoluteURI - the absolutized URIencoding - the character encodingcontext - the XPath dynamic contextXPathException - if the file cannot be readpublic static URI getAbsoluteURI(String href, String baseURI, XPathContext context) throws XPathException
XPathExceptionpublic static XPathException handleIOError(URI absoluteURI, IOException ioErr, XPathContext context)
public static CharSequence readFile(IntPredicate checker, Reader reader) throws IOException, XPathException
checker - predicate for checking whether characters are valid XML charactersreader - Reader to be used for reading the fileIOException - if a failure occurs reading the fileXPathException - if the file contains illegal characters