public class UnknownResource extends java.lang.Object implements Resource
| Modifier and Type | Field and Description |
|---|---|
static ResourceFactory |
FACTORY |
| Constructor and Description |
|---|
UnknownResource(Configuration config,
AbstractResourceCollection.InputDetails details) |
| 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 item representing the resource: in this case a document node for the XML document.
|
java.lang.String |
getResourceURI()
Get a URI that identifies this resource
|
public static final ResourceFactory FACTORY
public UnknownResource(Configuration config, AbstractResourceCollection.InputDetails details)
public java.lang.String getResourceURI()
ResourcegetResourceURI in interface Resourcepublic Item getItem(XPathContext context) throws XPathException
getItem in interface Resourcecontext - the XPath evaluation contextXPathException - if (for example) XML parsing failspublic java.lang.String getContentType()
getContentType in interface ResourceCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.