接口的使用
org.springframework.core.io.InputStreamSource
使用InputStreamSource的程序包 程序包 说明 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.org.springframework.mail.javamail JavaMail support for Spring's mail infrastructure.org.springframework.mock.web A comprehensive set of Servlet API 4.0 mock objects, targeted at usage with Spring's Web MVC framework.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.web.multipart Multipart resolution framework for handling file uploads.org.springframework.web.multipart.commons MultipartResolver implementation for Apache Commons FileUpload.org.springframework.web.reactive.resource Support classes for serving static resources.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.core.io中InputStreamSource的使用
org.springframework.core.io中InputStreamSource的子接口 修饰符和类型 接口 说明 interface
ContextResource
Extended interface for a resource that is loaded from an enclosing 'context', e.g. from aServletContext
but also from plain classpath paths or relative file system paths (specified without an explicit prefix, hence applying relative to the localResourceLoader
'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.实现InputStreamSource的org.springframework.core.io中的类 修饰符和类型 类 说明 class
AbstractFileResolvingResource
Abstract base class for resources which resolve URLs into File references, such asUrlResource
orClassPathResource
.class
AbstractResource
Convenience base class forResource
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
SimpleResource
implementation that holds a resource description but does not point to an actually readable resource.class
FileSystemResource
class
FileUrlResource
Subclass ofUrlResource
which assumes file resolution, to the degree of implementing theWritableResource
interface for it.class
InputStreamResource
Resource
implementation for a givenInputStream
.class
PathResource
class
UrlResource
Resource
implementation forjava.net.URL
locators.class
VfsResource
JBoss VFS basedResource
implementation.org.springframework.core.io.support中InputStreamSource的使用
实现InputStreamSource的org.springframework.core.io.support中的类 修饰符和类型 类 说明 class
EncodedResource
Holder that combines aResource
descriptor with a specific encoding orCharset
to be used for reading from the resource.org.springframework.mail.javamail中InputStreamSource的使用
参数类型为InputStreamSource的org.springframework.mail.javamail中的方法 修饰符和类型 方法 说明 void
MimeMessageHelper. addAttachment(String attachmentFilename, InputStreamSource inputStreamSource)
Add an attachment to the MimeMessage, taking the content from anorg.springframework.core.io.InputStreamResource
.void
MimeMessageHelper. addAttachment(String attachmentFilename, InputStreamSource inputStreamSource, String contentType)
Add an attachment to the MimeMessage, taking the content from anorg.springframework.core.io.InputStreamResource
.void
MimeMessageHelper. addInline(String contentId, InputStreamSource inputStreamSource, String contentType)
Add an inline element to the MimeMessage, taking the content from anorg.springframework.core.InputStreamResource
, and specifying the content type explicitly.protected DataSource
MimeMessageHelper. createDataSource(InputStreamSource inputStreamSource, String contentType, String name)
Create an Activation Framework DataSource for the given InputStreamSource.org.springframework.mock.web中InputStreamSource的使用
实现InputStreamSource的org.springframework.mock.web中的类 修饰符和类型 类 说明 class
MockMultipartFile
Mock implementation of theMultipartFile
interface.org.springframework.web.context.support中InputStreamSource的使用
实现InputStreamSource的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
ServletContextResource
Resource
implementation forServletContext
resources, interpreting relative paths within the web application root directory.org.springframework.web.multipart中InputStreamSource的使用
org.springframework.web.multipart中InputStreamSource的子接口 修饰符和类型 接口 说明 interface
MultipartFile
A representation of an uploaded file received in a multipart request.org.springframework.web.multipart.commons中InputStreamSource的使用
实现InputStreamSource的org.springframework.web.multipart.commons中的类 修饰符和类型 类 说明 class
CommonsMultipartFile
MultipartFile
implementation for Apache Commons FileUpload.org.springframework.web.reactive.resource中InputStreamSource的使用
org.springframework.web.reactive.resource中InputStreamSource的子接口 修饰符和类型 接口 说明 interface
HttpResource
Extended interface for aResource
to be written to an HTTP response.实现InputStreamSource的org.springframework.web.reactive.resource中的类 修饰符和类型 类 说明 class
TransformedResource
An extension ofByteArrayResource
that aResourceTransformer
can use to represent an original resource preserving all other information except the content.org.springframework.web.servlet.resource中InputStreamSource的使用
org.springframework.web.servlet.resource中InputStreamSource的子接口 修饰符和类型 接口 说明 interface
HttpResource
Extended interface for aResource
to be written to an HTTP response.实现InputStreamSource的org.springframework.web.servlet.resource中的类 修饰符和类型 类 说明 class
TransformedResource
An extension ofByteArrayResource
that aResourceTransformer
can use to represent an original resource preserving all other information except the content.