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 |
---|---|
java.lang.String |
getContentType()
Get the media type (MIME type) of the resource if known
|
Item |
getItem()
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() throws XPathException
XPathException
- if a failure occurs materializing the resource, and errors
are to be treated as fataljava.lang.String getContentType()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.