# Uses of Interface
org.springframework.core.io.InputStreamSource

Packages that use InputStreamSource
Package
Description
org.springframework.aot.generate
Support classes for components that contribute generated code equivalent to a runtime behavior.
org.springframework.core.io
Generic abstraction for (file-based) resources, used throughout the framework.
org.springframework.core.io.support
Support classes for Spring's resource abstraction.

## Uses of InputStreamSource in org.springframework.aot.generate

Methods in org.springframework.aot.generate that return InputStreamSource
Modifier and Type
Method
Description
`InputStreamSource`
GeneratedFiles.FileHandler.`getContent()`
Return an `InputStreamSource` for the content of the file or `null` if the file does not exist.
`InputStreamSource`
InMemoryGeneratedFiles.`getGeneratedFile(GeneratedFiles.Kind kind, String path)`
Return the `InputStreamSource` of specified file.
Methods in org.springframework.aot.generate that return types with arguments of type InputStreamSource
Modifier and Type
Method
Description
`Map<String,InputStreamSource>`
InMemoryGeneratedFiles.`getGeneratedFiles(GeneratedFiles.Kind kind)`
Return a `Map` of the generated files of a specific `GeneratedFiles.Kind`.
Methods in org.springframework.aot.generate with parameters of type InputStreamSource
Modifier and Type
Method
Description
`default void`
GeneratedFiles.`addClassFile(String path, InputStreamSource content)`
Add a generated `class file` with content from the given `InputStreamSource`.
`default void`
GeneratedFiles.`addFile(GeneratedFiles.Kind kind, String path, InputStreamSource content)`
Add a generated file of the specified `GeneratedFiles.Kind` with content from the given `InputStreamSource`.
`default void`
GeneratedFiles.`addResourceFile(String path, InputStreamSource content)`
Add a generated `resource file` with content from the given `InputStreamSource`.
`default void`
GeneratedFiles.`addSourceFile(String className, InputStreamSource content)`
Add a generated `source file` with content from the given `InputStreamSource`.
`protected abstract void`
GeneratedFiles.FileHandler.`copy(InputStreamSource content, boolean override)`
`void`
GeneratedFiles.FileHandler.`create(InputStreamSource content)`
Create a file with the given content.
`void`
GeneratedFiles.FileHandler.`override(InputStreamSource content)`
Override the content of the file handled by this instance using the given content.
Constructor parameters in org.springframework.aot.generate with type arguments of type InputStreamSource
Modifier
Constructor
Description
`protected`
`FileHandler(boolean exists, Supplier<InputStreamSource> existingContent)`

## Uses of InputStreamSource in org.springframework.core.io

Subinterfaces of InputStreamSource in org.springframework.core.io
Modifier and Type
Interface
Description
`interface`
`ContextResource`
Extended interface for a resource that is loaded from an enclosing 'context', for example, 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).
`interface`
`Resource`
Interface for a resource descriptor that abstracts from the actual type of underlying resource, such as a file or class path resource.
`interface`
`WritableResource`
Extended interface for a resource that supports writing to it.
Classes in org.springframework.core.io that implement InputStreamSource
Modifier and Type
Class
Description
`class`
`AbstractFileResolvingResource`
Abstract base class for resources which resolve URLs into File references, such as `UrlResource` or `ClassPathResource`.
`class`
`AbstractResource`
Convenience base class for `Resource` implementations, pre-implementing typical behavior.
`class`
`ByteArrayResource`
`Resource` implementation for a given byte array.
`class`
`ClassPathResource`
`Resource` implementation for class path resources.
`protected static class`
`DefaultResourceLoader.ClassPathContextResource`
ClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.
`class`
`DescriptiveResource`
Simple `Resource` implementation that holds a resource description but does not point to an actually readable resource.
`class`
`FileSystemResource`
`Resource` implementation for `java.io.File` and `java.nio.file.Path` handles with a file system target.
`class`
`FileUrlResource`
Subclass of `UrlResource` which assumes file resolution, to the degree of implementing the `WritableResource` interface for it.
`class`
`InputStreamResource`
`Resource` implementation for a given `InputStream` or a given `InputStreamSource` (which can be supplied as a lambda expression) for a lazy `InputStream` on demand.
`class`
`ModuleResource`
`Resource` implementation for `Module` resolution, performing `ModuleResource.getInputStream()` access via `Module.getResourceAsStream(java.lang.String)`.
`class`
`PathResource`
`Resource` implementation for `Path` handles, performing all operations and transformations via the `Path` API.
`class`
`UrlResource`
`Resource` implementation for `java.net.URL` locators.
`class`
`VfsResource`
JBoss VFS based `Resource` implementation.
Constructors in org.springframework.core.io with parameters of type InputStreamSource
Modifier
Constructor
Description
``
`InputStreamResource(InputStreamSource inputStreamSource)`
Create a new `InputStreamResource` with a lazy `InputStream` for single use.
``
`InputStreamResource(InputStreamSource inputStreamSource, String description)`
Create a new `InputStreamResource` with a lazy `InputStream` for single use.

## Uses of InputStreamSource in org.springframework.core.io.support

Classes in org.springframework.core.io.support that implement InputStreamSource
Modifier and Type
Class
Description
`class`
`EncodedResource`
Holder that combines a `Resource` descriptor with a specific encoding or `Charset` to be used for reading from the resource.