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() 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|
Get the media type (MIME type) of the resource if known
Get an XDM Item holding the contents of this resource.
Get a URI that identifies this resource
Item getItem() throws XPathException
XPathException- if a failure occurs materializing the resource, and errors are to be treated as fatal
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.