Class FileSystemResource

  • public class FileSystemResource
    extends java.lang.Object
    A FileSystemResource represents a resource (i.e. file) in a FileSystem.
    • Constructor Summary

      Constructor Description
      FileSystemResource​(FileSystem fs, java.lang.String path)
      Creates a new FileSystemResource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      Deletes this resource.
      void delete​(boolean pruneEmptyParentDirs)
      Deletes this resource.
      boolean equals​(java.lang.Object obj)  
      boolean exists()  
      FileSystem getFileSystem()
      Returns the FileSystem where this resource is located. getInputStream()  
      java.lang.String getName()
      Returns the name of this resource. getOutputStream()  
      java.lang.String getParentDir()
      Returns the parent directory of this resource.
      java.lang.String getPath()
      Returns the path of this resource.
      int hashCode()
      Returns zero to satisfy the Object equals/hashCode contract.
      long lastModified()  
      long length()  
      void makeParentDirs()
      Creates the parent directory of this resource, including any necessary but nonexistent parent directories.
      void spool​( out)
      Spools this resource to the given output stream.
      java.lang.String toString()
      Returns the path string of this resource.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait