Class MultipartInputStreamFileResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.InputStreamResource
io.github.guoshiqiufeng.dify.client.spring6.utils.MultipartInputStreamFileResource
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource
public class MultipartInputStreamFileResource
extends org.springframework.core.io.InputStreamResource
处理 MultipartFile
- Since:
- 2025/4/7 16:20
- Version:
- 0.8.0
- Author:
- yanghq
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.core.io.InputStreamResource
equals, exists, getDescription, getInputStream, hashCode, isOpenMethods inherited from class org.springframework.core.io.AbstractResource
createRelative, getFile, getFileForLastModifiedCheck, getURI, getURL, isFile, isReadable, lastModified, readableChannel, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString
-
Constructor Details
-
MultipartInputStreamFileResource
-
-
Method Details
-
getFilename
- Specified by:
getFilenamein interfaceorg.springframework.core.io.Resource- Overrides:
getFilenamein classorg.springframework.core.io.AbstractResource
-
contentLength
public long contentLength()- Specified by:
contentLengthin interfaceorg.springframework.core.io.Resource- Overrides:
contentLengthin classorg.springframework.core.io.AbstractResource
-