Uses of Interface
org.springframework.core.io.Resource
Packages that use Resource
Package
Description
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Generic abstraction for (file-based) resources, used throughout the framework.
Generic abstraction for working with byte buffer implementations.
Support classes for Spring's resource abstraction.
Support classes for reading annotation and class-level metadata.
-
Uses of Resource in org.springframework.aot.hint
Methods in org.springframework.aot.hint with parameters of type ResourceModifier and TypeMethodDescriptionvoidResourceHints.registerResource(Resource resource) Register that the supplied resource should be made available at runtime. -
Uses of Resource in org.springframework.core.codec
Methods in org.springframework.core.codec that return ResourceModifier and TypeMethodDescriptionResourceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Methods in org.springframework.core.codec that return types with arguments of type ResourceModifier and TypeMethodDescriptionreactor.core.publisher.Flux<Resource>ResourceDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Methods in org.springframework.core.codec with parameters of type ResourceModifier and TypeMethodDescriptionprotected reactor.core.publisher.Flux<DataBuffer>ResourceEncoder.encode(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) -
Uses of Resource in org.springframework.core.io
Subinterfaces of Resource in org.springframework.core.ioModifier and TypeInterfaceDescriptioninterfaceExtended interface for a resource that is loaded from an enclosing 'context', for example, 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).interfaceExtended interface for a resource that supports writing to it.Classes in org.springframework.core.io that implement ResourceModifier and TypeClassDescriptionclassAbstract base class for resources which resolve URLs into File references, such asUrlResourceorClassPathResource.classConvenience base class forResourceimplementations, pre-implementing typical behavior.classResourceimplementation for a given byte array.classResourceimplementation for class path resources.protected static classClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.classSimpleResourceimplementation that holds a resource description but does not point to an actually readable resource.classclassSubclass ofUrlResourcewhich assumes file resolution, to the degree of implementing theWritableResourceinterface for it.classResourceimplementation for a givenInputStreamor a givenInputStreamSource(which can be supplied as a lambda expression) for a lazyInputStreamon demand.classResourceimplementation forModuleresolution, performingModuleResource.getInputStream()access viaModule.getResourceAsStream(java.lang.String).classclassResourceimplementation forjava.net.URLlocators.classJBoss VFS basedResourceimplementation.Methods in org.springframework.core.io that return ResourceModifier and TypeMethodDescriptionAbstractResource.createRelative(String relativePath) This implementation throws a FileNotFoundException, assuming that relative resources cannot be created for this resource.ClassPathResource.createRelative(String relativePath) This implementation creates aClassPathResource, applying the given path relative to the path used to create this descriptor.DefaultResourceLoader.ClassPathContextResource.createRelative(String relativePath) FileSystemResource.createRelative(String relativePath) This implementation creates a FileSystemResource, applying the given path relative to the path of the underlying file of this resource descriptor.FileUrlResource.createRelative(String relativePath) ModuleResource.createRelative(String relativePath) PathResource.createRelative(String relativePath) This implementation creates aPathResource, applying the given path relative to the path of the underlying file of this resource descriptor.Resource.createRelative(String relativePath) Create a resource relative to this resource.UrlResource.createRelative(String relativePath) This implementation creates aUrlResource, delegating toUrlResource.createRelativeURL(String)for adapting the relative path.VfsResource.createRelative(String relativePath) DefaultResourceLoader.getResource(String location) ResourceLoader.getResource(String location) Return aResourcehandle for the specified resource location.protected ResourceClassRelativeResourceLoader.getResourceByPath(String path) protected ResourceDefaultResourceLoader.getResourceByPath(String path) Return a Resource handle for the resource at the given path.protected ResourceFileSystemResourceLoader.getResourceByPath(String path) Resolve resource paths as file system paths.ProtocolResolver.resolve(String location, ResourceLoader resourceLoader) Resolve the given location against the given resource loader if this implementation's protocol matches.Methods in org.springframework.core.io that return types with arguments of type ResourceModifier and TypeMethodDescriptionDefaultResourceLoader.getResourceCache(Class<T> valueType) Obtain a cache for the given value type, keyed byResource. -
Uses of Resource in org.springframework.core.io.buffer
Methods in org.springframework.core.io.buffer with parameters of type ResourceModifier and TypeMethodDescriptionstatic reactor.core.publisher.Flux<DataBuffer>DataBufferUtils.read(Resource resource, long position, DataBufferFactory bufferFactory, int bufferSize) Read the givenResourceinto aFluxofDataBuffers starting at the given position.static reactor.core.publisher.Flux<DataBuffer>DataBufferUtils.read(Resource resource, DataBufferFactory bufferFactory, int bufferSize) Read the givenResourceinto aFluxofDataBuffers. -
Uses of Resource in org.springframework.core.io.support
Methods in org.springframework.core.io.support that return ResourceModifier and TypeMethodDescriptionprotected ResourcePathMatchingResourcePatternResolver.convertClassLoaderURL(URL url) Convert the given URL as returned from the configuredClassLoaderinto aResource, applying to path lookups without a pattern (seePathMatchingResourcePatternResolver.findAllClassPathResources(java.lang.String)).protected Resource[]PathMatchingResourcePatternResolver.findAllClassPathResources(String location) Find all class location resources with the given location via the ClassLoader.LocalizedResourceHelper.findLocalizedResource(String name, String extension, Locale locale) Find the most specific localized resource for the given name, extension and locale:protected Resource[]PathMatchingResourcePatternResolver.findPathMatchingResources(String locationPattern) Find all resources that match the given location pattern via the Ant-stylePathMatcher.final ResourceEncodedResource.getResource()Return theResourceheld by thisEncodedResource.PathMatchingResourcePatternResolver.getResource(String location) ResourceRegion.getResource()Return the underlyingResourcefor thisResourceRegion.Resource[]PathMatchingResourcePatternResolver.getResources(String locationPattern) Resource[]ResourcePatternResolver.getResources(String locationPattern) Resolve the given location pattern intoResourceobjects.protected ResourcePathMatchingResourcePatternResolver.resolveRootDirResource(Resource original) Resolve the supplied root directory resource for path matching.Methods in org.springframework.core.io.support that return types with arguments of type ResourceModifier and TypeMethodDescriptionPathMatchingResourcePatternResolver.doFindAllClassPathResources(String path) Find all class path resources with the given path via the configuredClassLoader.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(Resource rootDirResource, String subPattern) Find all resources in the file system of the supplied root directory that match the given location sub pattern via the Ant-stylePathMatcher.PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(Resource rootDirResource, URL rootDirUrl, String subPattern) Find all resources in jar files that match the given location pattern via the Ant-stylePathMatcher.PathMatchingResourcePatternResolver.findAllModulePathResources(String locationPattern) Resolve the given location pattern intoResourceobjects for all matching resources found in the module path.Methods in org.springframework.core.io.support with parameters of type ResourceModifier and TypeMethodDescriptionPathMatchingResourcePatternResolver.doFindPathMatchingFileResources(Resource rootDirResource, String subPattern) Find all resources in the file system of the supplied root directory that match the given location sub pattern via the Ant-stylePathMatcher.PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(Resource rootDirResource, URL rootDirUrl, String subPattern) Find all resources in jar files that match the given location pattern via the Ant-stylePathMatcher.static voidPropertiesLoaderUtils.fillProperties(Properties props, Resource resource) Fill the given properties from the given resource (in ISO-8859-1 encoding).protected booleanPathMatchingResourcePatternResolver.isJarResource(Resource resource) Determine if the given resource handle indicates a jar resource that thePathMatchingResourcePatternResolver.doFindPathMatchingJarResources(org.springframework.core.io.Resource, java.net.URL, java.lang.String)method can handle.static PropertiesPropertiesLoaderUtils.loadProperties(Resource resource) Load properties from the given resource (in ISO-8859-1 encoding).protected ResourcePathMatchingResourcePatternResolver.resolveRootDirResource(Resource original) Resolve the supplied root directory resource for path matching.voidPropertiesLoaderSupport.setLocation(Resource location) Set a location of a properties file to be loaded.voidPropertiesLoaderSupport.setLocations(Resource... locations) Set locations of properties files to be loaded.Method parameters in org.springframework.core.io.support with type arguments of type ResourceModifier and TypeMethodDescriptionprotected voidPathMatchingResourcePatternResolver.addAllClassLoaderJarRoots(ClassLoader classLoader, Set<Resource> result) Search allURLClassLoaderURLs for jar file references and add each to the given set of resources in the form of a pointer to the root of the jar file content.protected voidPathMatchingResourcePatternResolver.addClassPathManifestEntries(Set<Resource> result) Determine jar file references fromClass-Pathmanifest entries (which are added to thejava.class.pathJVM system property by the system class loader) and add each to the given set of resources in the form of a pointer to the root of the jar file content.Constructors in org.springframework.core.io.support with parameters of type ResourceModifierConstructorDescriptionEncodedResource(Resource resource) Create a newEncodedResourcefor the givenResource, not specifying an explicit encoding orCharset.EncodedResource(Resource resource, String encoding) Create a newEncodedResourcefor the givenResource, using the specifiedencoding.EncodedResource(Resource resource, Charset charset) Create a newEncodedResourcefor the givenResource, using the specifiedCharset.ResourcePropertySource(String name, Resource resource) Create a PropertySource having the given name based on Properties loaded from the given encoded resource.ResourcePropertySource(Resource resource) Create a PropertySource based on Properties loaded from the given resource.ResourceRegion(Resource resource, long position, long count) Create a newResourceRegionfrom a givenResource. -
Uses of Resource in org.springframework.core.type.classreading
Methods in org.springframework.core.type.classreading that return ResourceModifier and TypeMethodDescriptionMetadataReader.getResource()Return the resource reference for the class file.Methods in org.springframework.core.type.classreading with parameters of type ResourceModifier and TypeMethodDescriptionCachingMetadataReaderFactory.getMetadataReader(Resource resource) MetadataReaderFactory.getMetadataReader(Resource resource) Obtain a MetadataReader for the given resource.SimpleMetadataReaderFactory.getMetadataReader(Resource resource)