|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.goldin.org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPFile
protected class FTP.FTPDirectoryScanner.AntFTPFile
an AntFTPFile is a representation of a remote file
| Constructor Summary | |
|---|---|
FTP.FTPDirectoryScanner.AntFTPFile(FTP.FTPDirectoryScanner.AntFTPFile parent,
String path)
other constructor |
|
FTP.FTPDirectoryScanner.AntFTPFile(org.apache.commons.net.ftp.FTPClient client,
org.apache.commons.net.ftp.FTPFile ftpFile,
String curpwd)
constructor |
|
| Method Summary | |
|---|---|
boolean |
exists()
find out if the file exists |
String |
getAbsolutePath()
find out the absolute path of the file |
protected org.apache.commons.net.ftp.FTPClient |
getClient()
return the attached FTP client object. |
String |
getCurpwd()
returns the path of the directory containing the AntFTPFile. |
String |
getFastRelativePath()
find out the relative path assuming that the path used to construct this AntFTPFile was spelled properly with regards to case. |
org.apache.commons.net.ftp.FTPFile |
getFile(org.apache.commons.net.ftp.FTPFile[] theFiles,
String lastpathelement)
find a file matching a string in an array of FTPFile. |
String |
getLink()
if the file is a symbolic link, find out to what it is pointing |
String |
getName()
get the name of the file |
String |
getRelativePath()
find out the relative path to the rootPath of the enclosing scanner. |
boolean |
isDirectory()
tell if a file is a directory. |
boolean |
isSymbolicLink()
tell if a file is a symbolic link |
boolean |
isTraverseSymlinks()
find out if a symbolic link is encountered in the relative path of this file from rootPath. |
protected void |
setCurpwd(String curpwd)
sets the current path of an AntFTPFile |
String |
toString()
Get a string rep of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FTP.FTPDirectoryScanner.AntFTPFile(org.apache.commons.net.ftp.FTPClient client,
org.apache.commons.net.ftp.FTPFile ftpFile,
String curpwd)
client - ftp client variableftpFile - the filecurpwd - absolute remote path where the file is found
public FTP.FTPDirectoryScanner.AntFTPFile(FTP.FTPDirectoryScanner.AntFTPFile parent,
String path)
parent - the parent filepath - a relative path to the parent file| Method Detail |
|---|
public boolean exists()
public String getLink()
public String getName()
public String getAbsolutePath()
public String getFastRelativePath()
public String getRelativePath()
throws IOException,
org.apache.tools.ant.BuildException
IOException - if a change directory fails, ...
org.apache.tools.ant.BuildException - if one of the components of the relative path cannot
be found.
public org.apache.commons.net.ftp.FTPFile getFile(org.apache.commons.net.ftp.FTPFile[] theFiles,
String lastpathelement)
theFiles - array of fileslastpathelement - the file name being sought
public boolean isDirectory()
true for directoriespublic boolean isSymbolicLink()
true for symbolic linksprotected org.apache.commons.net.ftp.FTPClient getClient()
protected void setCurpwd(String curpwd)
curpwd - the current path one wants to setpublic String getCurpwd()
public boolean isTraverseSymlinks()
throws IOException,
org.apache.tools.ant.BuildException
true if a symbolic link is encountered in the relative path.
IOException - if one of the change directory or directory listing operations
fails
org.apache.tools.ant.BuildException - if a path component in the relative path cannot be found.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||