Class TemporaryFileSystemResource

  • All Implemented Interfaces:
    org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource, org.springframework.core.io.WritableResource

    public class TemporaryFileSystemResource
    extends org.springframework.core.io.FileSystemResource
    Since:
    6.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getInputStream()  
      boolean isFile()  
      java.nio.channels.ReadableByteChannel readableChannel()  
      • Methods inherited from class org.springframework.core.io.FileSystemResource

        contentLength, createRelative, equals, exists, getDescription, getFile, getFilename, getOutputStream, getPath, getURI, getURL, hashCode, isReadable, isWritable, lastModified, writableChannel
      • Methods inherited from class org.springframework.core.io.AbstractResource

        getFileForLastModifiedCheck, isOpen, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.springframework.core.io.Resource

        isOpen
    • Constructor Detail

      • TemporaryFileSystemResource

        public TemporaryFileSystemResource​(java.io.File file)
    • Method Detail

      • readableChannel

        public java.nio.channels.ReadableByteChannel readableChannel()
                                                              throws java.io.IOException
        Specified by:
        readableChannel in interface org.springframework.core.io.Resource
        Overrides:
        readableChannel in class org.springframework.core.io.FileSystemResource
        Throws:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface org.springframework.core.io.InputStreamSource
        Overrides:
        getInputStream in class org.springframework.core.io.FileSystemResource
        Throws:
        java.io.IOException
      • isFile

        public boolean isFile()
        Specified by:
        isFile in interface org.springframework.core.io.Resource
        Overrides:
        isFile in class org.springframework.core.io.FileSystemResource