org.apache.tools.ant.taskdefs.optional.net

Class FTP.FTPFileProxy

protected static class FTP.FTPFileProxy extends File

internal class providing a File-like interface to some of the information available from the FTP server
Constructor Summary
FTPFileProxy(FTPFile file)
creates a proxy to a FTP file
FTPFileProxy(String completePath)
creates a proxy to a FTP directory
Method Summary
booleanexists()
StringgetAbsolutePath()
StringgetName()
StringgetParent()
StringgetPath()
booleanisAbsolute()
FTP files are stored as absolute paths
booleanisDirectory()
booleanisFile()
booleanisHidden()
FTP files cannot be hidden
longlastModified()
longlength()

Constructor Detail

FTPFileProxy

public FTPFileProxy(FTPFile file)
creates a proxy to a FTP file

Parameters: file

FTPFileProxy

public FTPFileProxy(String completePath)
creates a proxy to a FTP directory

Parameters: completePath the remote directory.

Method Detail

exists

public boolean exists()

getAbsolutePath

public String getAbsolutePath()

getName

public String getName()

getParent

public String getParent()

getPath

public String getPath()

isAbsolute

public boolean isAbsolute()
FTP files are stored as absolute paths

Returns: true

isDirectory

public boolean isDirectory()

isFile

public boolean isFile()

isHidden

public boolean isHidden()
FTP files cannot be hidden

Returns: false

lastModified

public long lastModified()

length

public long length()