程序包 cn.taketoday.core.io
package cn.taketoday.core.io
-
类说明Abstract base class for resources which resolve URLs into File references, such as
UrlResourceorClassPathResource.Convenience base class forResourceimplementations, pre-implementing typical behavior.Resourceimplementation for a given byte array.Resourceimplementation for class path resources.ResourceLoaderimplementation that interprets plain resource paths as relative to a givenjava.lang.Class.ClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.Extended interface for a resource that is loaded from an enclosing 'context', e.g. from ajakarta.servlet.ServletContextbut also from plain classpath paths or relative file system paths (specified without an explicit prefix, hence applying relative to the localResourceLoader's context).The default implementation forPropertySourceFactory, wrapping every resource in aResourcePropertySource.Default implementation of theResourceLoaderinterface.ClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.SimpleResourceimplementation that holds a resource description but does not point to an actually readable resource.Holder that combines aResourcedescriptor with a specific encoding orCharsetto be used for reading from the resource.ResourceLoaderimplementation that resolves plain paths as file system resources rather than as class path resources (the latter isDefaultResourceLoader's default strategy).FileSystemResource that explicitly expresses a context-relative path through implementing the ContextResource interface.Subclass ofUrlResourcewhich assumes file resolution, to the degree of implementing theWritableResourceinterface for it.Resourceimplementation for a givenInputStream.Simple interface for objects that are sources for anInputStream.Resourceimplementation forModuleresolution, performingModuleResource.getInputStream()access viaModule.getResourceAsStream(java.lang.String).APatternResourceLoaderimplementation that is able to resolve a specified resource location path into one or more matching Resources.Strategy interface for resolving a location pattern (for example, an Ant-style path pattern) intoResourceobjects.Base class for JavaBean-style components that need to load properties from one or more resources.Convenient utility methods for loading ofjava.util.Properties, performing standard handling of input streams.Describe aPropertySource.Strategy interface for creating resource-basedPropertySourcewrappers.Contributeproperty sourcesto theEnvironment.A resolution strategy for protocol-specific resource handles.Interface for a resource descriptor that abstracts from the actual type of underlying resource, such as a file or class path resource.Editor forResourcearrays, to automatically convertStringlocation patterns (e.g.Resource ConsumerThis class implements the Wrapper or Decorator pattern.Strategy interface for resolving a location pattern (for example, an Ant-style path pattern) into Resource objects.Subclass ofPropertiesPropertySourcethat loads aPropertiesobject from a givenResourceor resource location such as"classpath:/com/myco/foo.properties"or"file:/path/to/file.xml".Resourceimplementation forjava.net.URLlocators.Extended interface for a resource that supports writing to it.