public class JarCollection extends AbstractResourceCollection
AbstractResourceCollection.InputDetails
config, params
Constructor and Description |
---|
JarCollection(XPathContext context,
java.lang.String collectionURI,
URIQueryParameters params)
Create a JarCollection
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCollectionURI()
Get the URI identifying this collection
|
java.util.Iterator<Resource> |
getResources(XPathContext context)
Get an iterator over the resources in the collection
|
java.util.Iterator<java.lang.String> |
getResourceURIs(XPathContext context)
Get the URIs of the resources within the collection
|
protected java.util.Map<java.lang.String,GroundedValue<?>> |
makeProperties(java.util.zip.ZipEntry entry)
Get the properties of a Zip file entry, for use when returning a MetadataResource containing this information
|
boolean |
stripWhitespace(SpaceStrippingRule rules)
Supply information about the whitespace stripping rules that apply to this collection.
|
getInputDetails, guessContentTypeFromContent, guessContentTypeFromName, isStable, makeResource, makeResource, makeTypedResource, optionsFromQueryParameters, registerContentType, setupErrorHandlingForCollection
public JarCollection(XPathContext context, java.lang.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 boolean stripWhitespace(SpaceStrippingRule rules)
stripWhitespace
in interface ResourceCollection
stripWhitespace
in class AbstractResourceCollection
rules
- the space-stripping rules that apply to this collection, derived from
the xsl:strip-space and xsl:preserve-space declarations in the stylesheet
package containing the call to the collection() function.public java.lang.String getCollectionURI()
getCollectionURI
in interface ResourceCollection
getCollectionURI
in class AbstractResourceCollection
public java.util.Iterator<java.lang.String> getResourceURIs(XPathContext context) throws XPathException
context
- dynamic evaluation contextXPathException
- if any error occurs accessing the JAR file contentspublic java.util.Iterator<Resource> getResources(XPathContext context) throws XPathException
context
- the XPath evaluation contextFailedResource
if there are resources that cannot be processed for some reason.XPathException
- if it is not possible to get an iterator.protected java.util.Map<java.lang.String,GroundedValue<?>> makeProperties(java.util.zip.ZipEntry entry)
entry
- the current Zip file entryCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.