public class JarCollection extends AbstractResourceCollection
AbstractResourceCollection.InputDetailsconfig, 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 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,Sequence> |
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, guessContentType, isStable, makeResource, makeResource, optionsFromQueryParameters, registerContentTypepublic 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 ResourceCollectionstripWhitespace in class AbstractResourceCollectionrules - 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 ResourceCollectiongetCollectionURI in class AbstractResourceCollectionpublic java.util.Iterator<java.lang.String> getResourceURIs(XPathContext context) throws XPathException
context - XPathException - if any error occurs accessing the JAR file contentspublic java.util.Iterator<Resource> getResources(XPathContext context) throws XPathException
ResourceCollectioncontext - the XPath evaluation contextResource.XPathException - in the event of any error (for example, if the collection URI
is not recognized)protected java.util.Map<java.lang.String,Sequence> makeProperties(java.util.zip.ZipEntry entry)
entry - the current Zip file entryCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.