public class UnparsedTextLines extends UnparsedTextFunction implements Callable
Constructor and Description |
---|
UnparsedTextLines() |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
static java.net.URI |
getAbsoluteURI(java.lang.String href,
java.lang.String baseURI) |
static XPathException |
handleIOError(java.net.URI absoluteURI,
java.io.IOException ioErr) |
static void |
main(java.lang.String[] args) |
static java.lang.CharSequence |
readFile(IntPredicate checker,
java.io.Reader reader)
Read the contents of an unparsed text file
|
java.lang.CharSequence |
readFile(java.lang.String href,
java.lang.String baseURI,
java.lang.String encoding,
XPathContext context)
Supporting routine to load one external file given a URI (href) and a baseURI
|
getAbsoluteURI, getSpecialProperties, handleIOError, readFile
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, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
getLength, head, isStreamed, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
call
in interface Callable
call
in interface Function
context
- the dynamic evaluation contextarguments
- the values of the arguments, supplied as SequenceIteratorsXPathException
- if a dynamic error occurs during the evaluation of the expressionpublic java.lang.CharSequence readFile(java.lang.String href, java.lang.String baseURI, java.lang.String encoding, XPathContext context) throws XPathException
XPathException
public static java.net.URI getAbsoluteURI(java.lang.String href, java.lang.String baseURI) throws XPathException
XPathException
public static XPathException handleIOError(java.net.URI absoluteURI, java.io.IOException ioErr)
public static java.lang.CharSequence readFile(IntPredicate checker, java.io.Reader reader) throws java.io.IOException, XPathException
checker
- NameChecker for checking whether characters are valid XML charactersreader
- Reader to be used for reading the filejava.io.IOException
- if a failure occurs reading the fileXPathException
- if the file contains illegal characterspublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.