|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.taskdefs.optional.net.FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile
protected class FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile
an AntFTPFile is a representation of a remote file
| Constructor Summary | |
|---|---|
FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile(org.apache.commons.net.ftp.FTPClient client,
org.apache.commons.net.ftp.FTPFile ftpFile,
java.lang.String curpwd)
constructor |
|
FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile(FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile parent,
java.lang.String path)
other constructor |
|
| Method Summary | |
|---|---|
boolean |
exists()
find out if the file exists |
java.lang.String |
getAbsolutePath()
find out the absolute path of the file |
protected org.apache.commons.net.ftp.FTPClient |
getClient()
return the attached FTP client object. |
java.lang.String |
getCurpwd()
returns the path of the directory containing the AntFTPFile. |
java.lang.String |
getCurpwdPlusFileSep()
returns the path of the directory containing the AntFTPFile. |
java.lang.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,
java.lang.String lastpathelement)
find a file matching a string in an array of FTPFile. |
java.lang.String |
getLink()
if the file is a symbolic link, find out to what it is pointing |
java.lang.String |
getName()
get the name of the file |
java.lang.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(java.lang.String curpwd)
sets the current path of an AntFTPFile |
java.lang.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 FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile(org.apache.commons.net.ftp.FTPClient client,
org.apache.commons.net.ftp.FTPFile ftpFile,
java.lang.String curpwd)
client - ftp client variableftpFile - the filecurpwd - absolute remote path where the file is found
public FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile(FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile parent,
java.lang.String path)
parent - the parent filepath - a relative path to the parent file| Method Detail |
|---|
public boolean exists()
public java.lang.String getLink()
public java.lang.String getName()
public java.lang.String getAbsolutePath()
public java.lang.String getFastRelativePath()
public java.lang.String getRelativePath()
throws java.io.IOException,
BuildException
java.io.IOException - if a change directory fails, ...
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,
java.lang.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(java.lang.String curpwd)
curpwd - the current path one wants to setpublic java.lang.String getCurpwd()
public java.lang.String getCurpwdPlusFileSep()
public boolean isTraverseSymlinks()
throws java.io.IOException,
BuildException
true if a symbolic link is encountered in the relative path.
java.io.IOException - if one of the change directory or directory listing operations
fails
BuildException - if a path component in the relative path cannot be found.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||