net.sf.saxon.functions
public class UnparsedText extends SystemFunction
| Field Summary | |
|---|---|
| String | expressionBaseURI |
| static int | UNPARSED_TEXT |
| static int | UNPARSED_TEXT_AVAILABLE |
| Method Summary | |
|---|---|
| void | checkArguments(ExpressionVisitor visitor) |
| Item | evaluateItem(XPathContext context)
This method handles evaluation of the function:
it returns a StringValue in the case of unparsed-text(), or a BooleanValue
in the case of unparsed-text-available() |
| static void | main(String[] args) |
| Expression | preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing |
| static CharSequence | readFile(NameChecker checker, Reader reader)
Read the contents of an unparsed text file |
Parameters: visitor an expression visitor
Parameters: checker NameChecker for checking whether characters are valid XML characters reader Reader to be used for reading the file
Returns: a CharSequence representing the contents of the file
Throws: IOException if a failure occurs reading the file XPathException if the file contains illegal characters