Package net.sf.saxon.resource
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.
-
ClassesClassDescriptionAbstractCollection is an abstract superclass for the various implementations of ResourceCollection within Saxon.Information about a resourceThis class extends the standard SAXSource class by providing a
ActiveSAXSource.deliver(Receiver, ParseOptions)
method, meaning that Saxon can treat it just like any otherActiveSource
implementation.An extension of theStreamSource
object providing aActiveStreamSource.deliver(Receiver, ParseOptions)
method so that the contents of the source can be delivered to a suppliedReceiver
A binary resource that might appear in a resource collection.A resource collection implemented by means of a catalog file.This class handles URIs using the data: URI scheme defined in RFC 2397This class represents a resource collection containing all, or selected, files within a filestore directory.Utility class to detect the encoding of a stream by examining the initial bytesThis class represents a resource collection containing an explicitly enumerated set of resourcesFailedResource represents an item in a collection that could not be processed because of some kind of errorA 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.A Resource (that is, an item in a collection) holding JSON contentRepresents information about a resource, as well as a pointer to the resource itselfRepresents 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.The class provides a static method for loading resources from a URL.Default implementation of the CollectionFinder interface.AStreamSource
augmented with ContentType information, which potentially provides the media type and encodingThe 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.This class implements th interface Resource.The class is an implementation of the generic Resource object (typically an item in a collection) representing an XML document