Package net.sf.saxon.resource
This package contains Java classes used to represent abstractions of resources of different
kinds that can be retrieved as part of a collection (using the fn:collection()
function).
This framework was introduced in Saxon 9.8, reflecting the change in specification of fn:collection()
to allow any kind of resources to be returned, not only XML documents.
The set of media types that are recognized, and the way in which they are processed, can be customized via the Saxon Configuration file.
-
Class Summary Class Description AbstractResourceCollection AbstractCollection is an abstract superclass for the various implementations of ResourceCollection within Saxon.AbstractResourceCollection.InputDetails Information about a resourceActiveSAXSource This class extends the standard SAXSource class by providing aActiveSAXSource.deliver(Receiver, ParseOptions)
method, meaning that Saxon can treat it just like any otherActiveSource
implementation.ActiveStreamSource An extension of theStreamSource
object providing aActiveStreamSource.deliver(Receiver, ParseOptions)
method so that the contents of the source can be delivered to a suppliedReceiver
BinaryResource A binary resource that might appear in a resource collection.CatalogCollection A resource collection implemented by means of a catalog file.DataURIScheme This class handles URIs using the data: URI scheme defined in RFC 2397DirectoryCollection This class represents a resource collection containing all, or selected, files within a filestore directory.EncodingDetector Utility class to detect the encoding of a stream by examining the initial bytesExplicitCollection This class represents a resource collection containing an explicitly enumerated set of resourcesFailedResource FailedResource represents an item in a collection that could not be processed because of some kind of errorJarCollection A JarCollection represents a collection of resources held in a JAR or ZIP archive, accessed typically using a URI using the (Java-defined) "jar" URI scheme, or simply a "file" URI where the target file is a JAR or ZIP file.JSONResource A Resource (that is, an item in a collection) holding JSON contentMetadataResource Represents information about a resource, as well as a pointer to the resource itselfParsedContentType Represents a content type as it appears in HTTP headers, parsed to extract two properties: (a) a boolean indicating whether the media type is XML, and (b) the character encoding.ResourceLoader The class provides a static method for loading resources from a URL.StandardCollectionFinder Default implementation of the CollectionFinder interface.TypedStreamSource AStreamSource
augmented with ContentType information, which potentially provides the media type and encodingUnknownResource The class is an implementation of the generic Resource object (typically an item in a collection) representing a resource whose type is not yet known - typically because it uses an unregistered file extension.UnparsedTextResource This class implements th interface Resource.XmlResource The class is an implementation of the generic Resource object (typically an item in a collection) representing an XML document