Generic abstraction for (file-based) resources, used throughout the framework.


Interface Summary
ContextResource Extended interface for a resource that is loaded from an enclosing 'context', e.g. from a ServletContext or a PortletContext but also from plain classpath paths or relative file system paths (specified without an explicit prefix, hence applying relative to the local ResourceLoader's context).
InputStreamSource Simple interface for objects that are sources for an InputStream.
Resource Interface for a resource descriptor that abstracts from the actual type of underlying resource, such as a file or class path resource.
ResourceLoader Strategy interface for loading resources (e.. class path or file system resources).

Class Summary
AbstractResource Convenience base class for Resource implementations, pre-implementing typical behavior.
ByteArrayResource Resource implementation for a given byte array.
ClassPathResource Resource implementation for class path resources.
DefaultResourceLoader Default implementation of the ResourceLoader interface.
DescriptiveResource Simple Resource implementation that holds a resource description but does not point to an actually readable resource.
FileSystemResource Resource implementation for handles.
FileSystemResourceLoader ResourceLoader implementation that resolves plain paths as file system resources rather than as class path resources (the latter is DefaultResourceLoader's default strategy).
InputStreamResource Resource implementation for a given InputStream.
ResourceEditor Editor for Resource descriptors, to automatically convert String locations e.g.
UrlResource Resource implementation for locators.

Package Description

Generic abstraction for (file-based) resources, used throughout the framework.

Copyright © 2002-2008 The Spring Framework.