Class FTPTaskMirrorImpl.FTPFileProxy
java.lang.Object
java.io.File
org.apache.tools.ant.taskdefs.optional.net.FTPTaskMirrorImpl.FTPFileProxy
- All Implemented Interfaces:
- Serializable,- Comparable<File>
- Enclosing class:
- FTPTaskMirrorImpl
internal class providing a File-like interface to some of the information
 available from the FTP server
- See Also:
- 
Field SummaryFields inherited from class java.io.FilepathSeparator, pathSeparatorChar, separator, separatorChar
- 
Constructor SummaryConstructorsConstructorDescriptionFTPFileProxy(String completePath) creates a proxy to a FTP directoryFTPFileProxy(org.apache.commons.net.ftp.FTPFile file) creates a proxy to a FTP file
- 
Method SummaryMethods inherited from class java.io.FilecanExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, getAbsoluteFile, getCanonicalFile, getCanonicalPath, getFreeSpace, getParentFile, getTotalSpace, getUsableSpace, hashCode, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
- 
Constructor Details- 
FTPFileProxypublic FTPFileProxy(org.apache.commons.net.ftp.FTPFile file) creates a proxy to a FTP file- Parameters:
- file- FTPFile
 
- 
FTPFileProxycreates a proxy to a FTP directory- Parameters:
- completePath- the remote directory.
 
 
- 
- 
Method Details- 
existspublic boolean exists()
- 
getAbsolutePath- Overrides:
- getAbsolutePathin class- File
 
- 
getName
- 
getParent
- 
getPath
- 
isAbsolutepublic boolean isAbsolute()FTP files are stored as absolute paths- Overrides:
- isAbsolutein class- File
- Returns:
- true
 
- 
isDirectorypublic boolean isDirectory()- Overrides:
- isDirectoryin class- File
 
- 
isFilepublic boolean isFile()
- 
isHiddenpublic boolean isHidden()FTP files cannot be hidden
- 
lastModifiedpublic long lastModified()- Overrides:
- lastModifiedin class- File
 
- 
lengthpublic long length()
 
-