org.springframework.core.io

Class FileSystemResource

    • Method Summary

      Methods  
      Modifier and Type Method and Description
      long contentLength()
      This implementation returns the underlying File's length.
      Resource createRelative(String relativePath)
      This implementation creates a FileSystemResource, applying the given path relative to the path of the underlying file of this resource descriptor.
      boolean equals(Object obj)
      This implementation compares the underlying File references.
      boolean exists()
      This implementation returns whether the underlying file exists.
      String getDescription()
      This implementation returns a description that includes the absolute path of the file.
      File getFile()
      This implementation returns the underlying File reference.
      String getFilename()
      This implementation returns the name of the file.
      InputStream getInputStream()
      This implementation opens a FileInputStream for the underlying file.
      OutputStream getOutputStream()
      This implementation opens a FileOutputStream for the underlying file.
      String getPath()
      Return the file path for this resource.
      URI getURI()
      This implementation returns a URI for the underlying file.
      URL getURL()
      This implementation returns a URL for the underlying file.
      int hashCode()
      This implementation returns the hash code of the underlying File reference.
      boolean isReadable()
      This implementation checks whether the underlying file is marked as readable (and corresponds to an actual file with content, not to a directory).
      boolean isWritable()
      This implementation checks whether the underlying file is marked as writable (and corresponds to an actual file with content, not to a directory).