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
This framework was introduced in Saxon 9.8, reflecting the change in specification of
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 AbstractResourceCollectionAbstractCollection is an abstract superclass for the various implementations of ResourceCollection within Saxon. AbstractResourceCollection.InputDetailsInformation about a resource ActiveSAXSource ActiveStreamSourceAn extension of the
StreamSourceobject providing a
ActiveStreamSource.deliver(Receiver, ParseOptions)method so that the contents of the source can be delivered to a supplied
BinaryResourceA binary resource that might appear in a resource collection. CatalogCollectionA resource collection implemented by means of a catalog file. DataURISchemeThis class handles URIs using the data: URI scheme defined in RFC 2397 DirectoryCollectionThis class represents a resource collection containing all, or selected, files within a filestore directory. EncodingDetectorUtility class to detect the encoding of a stream by examining the initial bytes ExplicitCollectionThis class represents a resource collection containing an explicitly enumerated set of resources FailedResourceFailedResource represents an item in a collection that could not be processed because of some kind of error JarCollectionA 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. JSONResourceA Resource (that is, an item in a collection) holding JSON content MetadataResourceRepresents information about a resource, as well as a pointer to the resource itself ParsedContentTypeRepresents 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. ResourceLoaderThe class provides a static method for loading resources from a URL. StandardCollectionFinderDefault implementation of the CollectionFinder interface. TypedStreamSourceA
StreamSourceaugmented with ContentType information, which potentially provides the media type and encoding
UnknownResourceThe 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. UnparsedTextResourceThis class implements th interface Resource. XmlResourceThe class is an implementation of the generic Resource object (typically an item in a collection) representing an XML document