public class JarCollection extends AbstractResourceCollection
AbstractResourceCollection.InputDetails
params
Constructor and Description |
---|
JarCollection(XPathContext context,
String collectionURI,
URIQueryParameters params)
Create a JarCollection
|
Modifier and Type | Method and Description |
---|---|
String |
getCollectionURI()
Get the URI identifying this collection
|
Iterator<Resource> |
getResources(XPathContext context)
Get the resources in the collection.
|
Iterator<String> |
getResourceURIs(XPathContext context)
Get the URIs of the resources within the collection
|
protected Map<String,Sequence> |
makeProperties(ZipEntry entry)
Get the properties of a Zip file entry, for use when returning a MetadataResource containing this information
|
getInputDetails, guessContentType, isStable, makeResource, optionsFromQueryParameters, registerContentType, registerFileExtension
public JarCollection(XPathContext context, String collectionURI, URIQueryParameters params)
context
- The XPath dynamic contextcollectionURI
- the collection URI used to identify this collection (typically but not necessarily
the location of the JAR file)params
- URI query parameters appearing on the collection URIpublic String getCollectionURI()
getCollectionURI
in interface ResourceCollection
getCollectionURI
in class AbstractResourceCollection
public Iterator<String> getResourceURIs(XPathContext context) throws XPathException
context
- XPathException
- if any error occurs accessing the JAR file contentspublic 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)protected Map<String,Sequence> makeProperties(ZipEntry entry)
entry
- the current Zip file entryCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.