Interface RemoteFile
- All Known Implementing Classes:
ResourceBasedRemoteFile
public interface RemoteFile
Represents a file stored remotely.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the content length of the file.Returns an input stream to the content of the file.getPath()
Returns information about the path of the file in the remote store.org.springframework.core.io.Resource
Returns the remote file as a SpringResource
.
-
Method Details
-
getPath
RemotePath getPath()Returns information about the path of the file in the remote store. -
getInputStream
Returns an input stream to the content of the file.- Throws:
IOException
- if an error occurs while trying to access the file content
-
getContentLength
Returns the content length of the file.- Throws:
IOException
- if an error occurs while trying to access the file
-
toResource
Returns the remote file as a SpringResource
.- Throws:
IOException
- if the file can't be resolved successfully as a resource
-