public class CatalogCollection extends AbstractResourceCollection
AbstractResourceCollection.InputDetails
Modifier and Type | Field and Description |
---|---|
static HashMap<String,String> |
mimeTypeMap |
collectionURI, params
Constructor and Description |
---|
CatalogCollection(String collectionURI) |
Modifier and Type | Method and Description |
---|---|
protected Iterator<String> |
catalogContents(String href,
XPathContext context)
Return a collection defined as a list of URIs in a catalog file
|
Iterator<Resource> |
getResources(XPathContext context)
Get the resources in the collection.
|
Iterator<String> |
getResourceURIs(XPathContext context)
Get the URIs of the resources in the collection.
|
boolean |
isStable(XPathContext context)
Ask whether the collection is stable.
|
static StringBuilder |
makeStringBuilderFromStream(InputStream in) |
static void |
putMimeTypeMap(String contentType,
String extension) |
getCollectionURI, getInputDetails, guessContentType, makeResource, optionsFromQueryParameters, registerContentType, registerFileExtension
public CatalogCollection(String collectionURI)
public Iterator<String> getResourceURIs(XPathContext context) throws XPathException
ResourceCollection
context
- the XPath evaluation contextXPathException
- in the event of any error (for example, if the collection URI
is not recognized)public Iterator<Resource> getResources(XPathContext context) throws XPathException
ResourceCollection
context
- the XPath evaluation contextXPathException
- in the event of any error (for example, if the collection URI
is not recognized)public boolean isStable(XPathContext context)
AbstractResourceCollection
ResourceCollection.getResources(XPathContext)
or ResourceCollection.getResourceURIs(XPathContext)
isStable
in interface ResourceCollection
isStable
in class AbstractResourceCollection
context
- the XPath evaluation context.
FeatureKeys.STABLE_COLLECTION_URI} is set.public static StringBuilder makeStringBuilderFromStream(InputStream in) throws IOException
IOException
protected Iterator<String> catalogContents(String href, XPathContext context) throws XPathException
href
- the absolute URI of the catalog filecontext
- the dynamic evaluation contextXPathException
- if any failures occurCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.