public interface Resource
It is recommended (but is not universally the case) that fetching (and where necessary parsing)
the content of a Resource should be delayed until the getItem(net.sf.saxon.expr.XPathContext)
method is called. This means
that errors in fetching the resource or parsing its contents may go undetected until the resource
is materialized in this way.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Get the media type (MIME type) of the resource if known
|
Item |
getItem(XPathContext context)
Get an XDM Item holding the contents of this resource.
|
java.lang.String |
getResourceURI()
Get a URI that identifies this resource
|
java.lang.String getResourceURI()
Item getItem(XPathContext context) throws XPathException
context
- the XPath evaluation contextXPathException
- if a failure occurs materializing the resourcejava.lang.String getContentType()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.