| Modifier and Type | Field and Description |
|---|---|
static ResourceFactory |
FACTORY |
| Constructor and Description |
|---|
JSONResource(AbstractResourceCollection.InputDetails details)
Create the resource
|
| 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
|
public static final ResourceFactory FACTORY
public JSONResource(AbstractResourceCollection.InputDetails details)
details - the inputstream holding the JSON content plus details of encoding etcpublic java.lang.String getResourceURI()
ResourcegetResourceURI in interface Resourcepublic Item getItem(XPathContext context) throws XPathException
ResourcegetItem in interface Resourcecontext - the XPath evaluation contextXPathException - if a failure occurs materializing the resourcepublic java.lang.String getContentType()
getContentType in interface ResourceCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.