Interface RemoteFile
-
- All Known Implementing Classes:
ResourceBasedRemoteFile
public interface RemoteFileRepresents a file stored remotely.- Author:
- avasquez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetContentLength()Returns the content length of the file.InputStreamgetInputStream()Returns an input stream to the content of the file.RemotePathgetPath()Returns information about the path of the file in the remote store.org.springframework.core.io.ResourcetoResource()Returns the remote file as a SpringResource.
-
-
-
Method Detail
-
getPath
RemotePath getPath()
Returns information about the path of the file in the remote store.
-
getInputStream
InputStream getInputStream() throws IOException
Returns an input stream to the content of the file.- Throws:
IOException- if an error occurs while trying to access the file content
-
getContentLength
long getContentLength() throws IOExceptionReturns the content length of the file.- Throws:
IOException- if an error occurs while trying to access the file
-
toResource
org.springframework.core.io.Resource toResource() throws IOExceptionReturns the remote file as a SpringResource.- Throws:
IOException- if the file can't be resolved successfully as a resource
-
-