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, readFiledependsOnContextItem, 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, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckgetLength, head, isStreamed, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
call in interface Callablecall in interface Functioncontext - 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
XPathExceptionpublic static java.net.URI getAbsoluteURI(java.lang.String href,
java.lang.String baseURI)
throws XPathException
XPathExceptionpublic 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.ExceptionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.