Modifier and Type | Field and Description |
---|---|
static ResourceFactory |
FACTORY |
Constructor and Description |
---|
JSONResource(String href,
AbstractResourceCollection.InputDetails details) |
JSONResource(String href,
InputStream in) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getResourceURI()
Get a URI that identifies this resource
|
public static final ResourceFactory FACTORY
public JSONResource(String href, InputStream in)
public JSONResource(String href, AbstractResourceCollection.InputDetails details)
public String getResourceURI()
Resource
getResourceURI
in interface Resource
public Item getItem(XPathContext context) throws XPathException
Resource
getItem
in interface Resource
context
- the XPath evaluation contextXPathException
- if a failure occurs materializing the resourcepublic String getContentType()
Resource
getContentType
in interface Resource
Copyright (c) 2004-2017 Saxonica Limited. All rights reserved.