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.

  • Classes
    Class
    Description
    AbstractCollection is an abstract superclass for the various implementations of ResourceCollection within Saxon.
    Information about a resource
    This class extends the standard SAXSource class by providing a ActiveSAXSource.deliver(Receiver, ParseOptions) method, meaning that Saxon can treat it just like any other ActiveSource implementation.
    An extension of the StreamSource object providing a ActiveStreamSource.deliver(Receiver, ParseOptions) method so that the contents of the source can be delivered to a supplied Receiver
    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 2397
    This 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 bytes
    This class represents a resource collection containing an explicitly enumerated set of resources
    FailedResource represents an item in a collection that could not be processed because of some kind of error
    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.
    A Resource (that is, an item in a collection) holding JSON content
    Represents information about a resource, as well as a pointer to the resource itself
    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.
    The class provides a static method for loading resources from a URL.
    Default implementation of the CollectionFinder interface.
    A StreamSource augmented with ContentType information, which potentially provides the media type and encoding
    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.
    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