Saxon.Api
Class Resource
- Direct Known Subclasses
- BinaryResource, XmlResource
-
public class Resource
- implements IResource
Resource Wrapper class for a Java Resource object
Constructor Summary |
|
---|---|
Resource () Default constructor |
|
Resource (net.sf.saxon.lib.Resource rc) Constructor to wrap a Java Resource |
Method Summary |
|
---|---|
string | GetContentType() Get the media type (MIME type) of the resource if known |
string | GetResourceURI() Get a URI that identifies this resource |
XdmItem | GetXdmItem(DynamicContext context) Get an XDM Item holding the contents of this resource. |
Constructor Detail
Resource
Default constructor
Resource
Constructor to wrap a Java Resource
Parameters:
rc
- Java Resource objectMethod Detail
GetContentType
GetResourceURI
Get a URI that identifies this resource
Returns:
GetXdmItem
Get an XDM Item holding the contents of this resource.
Parameters:
context
- the XPath evaluation contextReturns:
Get the media type (MIME type) of the resource if known
Returns: