Class MultipartInputStreamFileResource

java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.InputStreamResource
io.github.guoshiqiufeng.dify.client.spring5.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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
     

    Methods inherited from class org.springframework.core.io.InputStreamResource

    equals, exists, getDescription, getInputStream, hashCode, isOpen

    Methods inherited from class org.springframework.core.io.AbstractResource

    createRelative, getFile, getFileForLastModifiedCheck, getURI, getURL, isFile, isReadable, lastModified, readableChannel, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MultipartInputStreamFileResource

      public MultipartInputStreamFileResource(InputStream inputStream, String filename)
  • Method Details

    • getFilename

      public String getFilename()
      Specified by:
      getFilename in interface org.springframework.core.io.Resource
      Overrides:
      getFilename in class org.springframework.core.io.AbstractResource
    • contentLength

      public long contentLength()
      Specified by:
      contentLength in interface org.springframework.core.io.Resource
      Overrides:
      contentLength in class org.springframework.core.io.AbstractResource