public interface RemoteFile
Modifier and Type | Method and Description |
---|---|
boolean |
copyLocallyPreservingPath(File inLocalRootDir)
Copies the remote file to the specified local root dir plus the file's remote path.
|
InputStream |
getInputStream() |
String |
getName() |
String |
getPath() |
String |
getRequestedPath()
The requested path may differ from getPath() if the requested path was a symbolic link.
|
long |
getSize() |
Calendar |
getTimestamp() |
String |
getURL() |
boolean |
writeToLocalDir(File inLocalDir)
Copies the remote file to the specified local directory.
|
boolean |
writeToLocalFile(File inLocalFile)
Copies the remote file to the specified local file.
|
long |
writeToStream(OutputStream stream) |
String getRequestedPath()
long getSize()
Calendar getTimestamp()
InputStream getInputStream() throws IOException
IOException
long writeToStream(OutputStream stream) throws IOException
IOException
boolean writeToLocalDir(File inLocalDir) throws IOException
IOException
boolean writeToLocalFile(File inLocalFile) throws IOException
IOException
boolean copyLocallyPreservingPath(File inLocalRootDir) throws IOException
IOException