程序包 org.springframework.core.io
Generic abstraction for (file-based) resources, used throughout the framework.
接口概要 接口 说明 ContextResource Extended interface for a resource that is loaded from an enclosing 'context', e.g. from aServletContextor aPortletContextbut also from plain classpath paths or relative file system paths (specified without an explicit prefix, hence applying relative to the localResourceLoader's context).InputStreamSource Simple interface for objects that are sources for anInputStream.ProtocolResolver A resolution strategy for protocol-specific resource handles.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).WritableResource Extended interface for a resource that supports writing to it.类概要 类 说明 AbstractFileResolvingResource Abstract base class for resources which resolve URLs into File references, such asUrlResourceorClassPathResource.AbstractResource Convenience base class forResourceimplementations, pre-implementing typical behavior.ByteArrayResource Resourceimplementation for a given byte array.ClassPathResource Resourceimplementation for class path resources.ClassRelativeResourceLoader ResourceLoaderimplementation that interprets plain resource paths as relative to a givenjava.lang.Class.DefaultResourceLoader Default implementation of theResourceLoaderinterface.DefaultResourceLoader.ClassPathContextResource ClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.DescriptiveResource SimpleResourceimplementation that holds a resource description but does not point to an actually readable resource.FileSystemResource Resourceimplementation forjava.io.Filehandles.FileSystemResourceLoader ResourceLoaderimplementation that resolves plain paths as file system resources rather than as class path resources (the latter isDefaultResourceLoader's default strategy).InputStreamResource Resourceimplementation for a givenInputStream.PathResource Resourceimplementation forjava.nio.file.Pathhandles.ResourceEditor UrlResource Resourceimplementation forjava.net.URLlocators.VfsResource JBoss VFS basedResourceimplementation.VfsUtils Utility for detecting and accessing JBoss VFS in the classpath.