Class OptionedFileSystemResource

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

    public final class OptionedFileSystemResource
    extends org.springframework.core.io.FileSystemResource
    • Constructor Summary

      Constructors 
      Constructor Description
      OptionedFileSystemResource​(java.io.File file, java.nio.file.OpenOption... options)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.OutputStream getOutputStream()  
      • Methods inherited from class org.springframework.core.io.AbstractResource

        getFileForLastModifiedCheck, isOpen, lastModified, toString
      • Methods inherited from class org.springframework.core.io.FileSystemResource

        contentLength, createRelative, equals, exists, getDescription, getFile, getFilename, getInputStream, getPath, getURI, getURL, hashCode, isFile, isReadable, isWritable, readableChannel, writableChannel
      • 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, lastModified
    • Constructor Detail

      • OptionedFileSystemResource

        public OptionedFileSystemResource​(@Nonnull
                                          java.io.File file,
                                          @Nullable
                                          java.nio.file.OpenOption... options)
    • Method Detail

      • getOutputStream

        @Nonnull
        public java.io.OutputStream getOutputStream()
                                             throws java.io.IOException
        Specified by:
        getOutputStream in interface org.springframework.core.io.WritableResource
        Overrides:
        getOutputStream in class org.springframework.core.io.FileSystemResource
        Throws:
        java.io.IOException