# 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 resource
  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 2397
  DirectoryCollection | This class represents a resource collection containing all, or selected, files within a filestore directory.
  FailedResource | FailedResource represents an item in a collection that could not be processed because of some kind of error
  JarCollection | 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 content
  MetadataResource | Created by mike on 28/10/15.
  StandardCollectionFinder | Default implementation of the CollectionFinder interface.
  UnknownResource | 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