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 Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
ConstructorDescriptionFTPFileProxy
(String completePath) creates a proxy to a FTP directoryFTPFileProxy
(org.apache.commons.net.ftp.FTPFile file) creates a proxy to a FTP file -
Method Summary
Methods inherited from class java.io.File
canExecute, 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
-
FTPFileProxy
public FTPFileProxy(org.apache.commons.net.ftp.FTPFile file) creates a proxy to a FTP file- Parameters:
file
- FTPFile
-
FTPFileProxy
creates a proxy to a FTP directory- Parameters:
completePath
- the remote directory.
-
-
Method Details
-
exists
public boolean exists() -
getAbsolutePath
- Overrides:
getAbsolutePath
in classFile
-
getName
-
getParent
-
getPath
-
isAbsolute
public boolean isAbsolute()FTP files are stored as absolute paths- Overrides:
isAbsolute
in classFile
- Returns:
- true
-
isDirectory
public boolean isDirectory()- Overrides:
isDirectory
in classFile
-
isFile
public boolean isFile() -
isHidden
public boolean isHidden()FTP files cannot be hidden -
lastModified
public long lastModified()- Overrides:
lastModified
in classFile
-
length
public long length()
-