Java org.springframework.core.io FileSystemResource fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core.io FileSystemResource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core.io FileSystemResource.

The text is from its open source code.

Subclass

org.springframework.core.io.FileSystemResource has subclasses.
Click this link to see all its subclasses.

Constructor

FileSystemResource(String path)
Create a new FileSystemResource from a file path.
FileSystemResource(File file)
Create a new FileSystemResource from a File handle.
FileSystemResource(Path filePath)
Create a new FileSystemResource from a Path handle, performing all file system interactions via NIO.2 instead of File .

Method

longcontentLength()
This implementation returns the underlying File/Path length.
booleanexists()
This implementation returns whether the underlying file exists.
StringgetDescription()
This implementation returns a description that includes the absolute path of the file.
FilegetFile()
This implementation returns the underlying File reference.
StringgetFilename()
This implementation returns the name of the file.
InputStreamgetInputStream()
This implementation opens a NIO file stream for the underlying file.
StringgetPath()
Return the file path for this resource.
URLgetURL()
This implementation returns a URL for the underlying file.
StringtoString()
This implementation returns the description of this resource.