Top Description Interfaces Classes
module spring.core

Package org.springframework.core.io

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

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

Interface Summary

Modifier and TypeInterface and Description
public interface
ContextResource

Extended interface for a resource that is loaded from an enclosing 'context', e.g. from a jakarta.servlet.ServletContext 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).

public interface
InputStreamSource

Simple interface for objects that are sources for an InputStream.

public interface
ProtocolResolver

A resolution strategy for protocol-specific resource handles.

public interface
Resource

Interface for a resource descriptor that abstracts from the actual type of underlying resource, such as a file or class path resource.

public interface
ResourceLoader

Strategy interface for loading resources (e.g., class path or file system resources).

public interface
WritableResource

Extended interface for a resource that supports writing to it.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractFileResolvingResource

Abstract base class for resources which resolve URLs into File references, such as UrlResource or ClassPathResource.

public abstract class
AbstractResource

Convenience base class for Resource implementations, pre-implementing typical behavior.

public class
ByteArrayResource

Resource implementation for a given byte array.

public class
ClassPathResource

Resource implementation for class path resources.

public class
ClassRelativeResourceLoader

ResourceLoader implementation that interprets plain resource paths as relative to a given java.lang.Class.

public class
DefaultResourceLoader

Default implementation of the ResourceLoader interface.

public class
DescriptiveResource

Simple Resource implementation that holds a resource description but does not point to an actually readable resource.

public class
FileSystemResource

Resource implementation for java.io.File and java.nio.file.Path handles with a file system target.

public class
FileSystemResourceLoader

ResourceLoader implementation that resolves plain paths as file system resources rather than as class path resources (the latter is DefaultResourceLoader's default strategy).

public class
FileUrlResource

Subclass of UrlResource which assumes file resolution, to the degree of implementing the WritableResource interface for it.

public class
InputStreamResource

Resource implementation for a given InputStream.

public class
ModuleResource

Resource implementation for java.lang.Module resolution, performing getInputStream() access via Module#getResourceAsStream.

public class
PathResource

Resource implementation for java.nio.file.Path handles, performing all operations and transformations via the Path API.

public class
ResourceEditor

Editor for Resource descriptors, to automatically convert String locations e.g. file:C:/myfile.txt or classpath:myfile.txt to Resource properties instead of using a String location property.

public class
UrlResource

Resource implementation for java.net.URL locators.

public class
VfsResource

JBoss VFS based Resource implementation.

public abstract class
VfsUtils

Utility for detecting and accessing JBoss VFS in the classpath.