Class FTP.FTPFileProxy
- java.lang.Object
-
- java.io.File
-
- org.apache.tools.ant.taskdefs.optional.net.FTP.FTPFileProxy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<java.io.File>
- Enclosing class:
- FTP
protected static class FTP.FTPFileProxy extends java.io.File
internal class providing a File-like interface to some of the information available from the FTP server- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FTPFileProxy(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists()
java.lang.String
getAbsolutePath()
java.lang.String
getName()
java.lang.String
getParent()
java.lang.String
getPath()
boolean
isAbsolute()
FTP files are stored as absolute pathsboolean
isDirectory()
boolean
isFile()
boolean
isHidden()
FTP files cannot be hiddenlong
lastModified()
long
length()
-
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
-
-
-
-
Method Detail
-
exists
public boolean exists()
- Overrides:
exists
in classjava.io.File
-
getAbsolutePath
public java.lang.String getAbsolutePath()
- Overrides:
getAbsolutePath
in classjava.io.File
-
getName
public java.lang.String getName()
- Overrides:
getName
in classjava.io.File
-
getParent
public java.lang.String getParent()
- Overrides:
getParent
in classjava.io.File
-
getPath
public java.lang.String getPath()
- Overrides:
getPath
in classjava.io.File
-
isAbsolute
public boolean isAbsolute()
FTP files are stored as absolute paths- Overrides:
isAbsolute
in classjava.io.File
- Returns:
- true
-
isDirectory
public boolean isDirectory()
- Overrides:
isDirectory
in classjava.io.File
-
isFile
public boolean isFile()
- Overrides:
isFile
in classjava.io.File
-
isHidden
public boolean isHidden()
FTP files cannot be hidden- Overrides:
isHidden
in classjava.io.File
- Returns:
- false
-
lastModified
public long lastModified()
- Overrides:
lastModified
in classjava.io.File
-
length
public long length()
- Overrides:
length
in classjava.io.File
-
-