|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.DirectoryScanner | +--org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner
internal class allowing to read the contents of a remote file system using the FTP protocol used in particular for ftp get operations differences with DirectoryScanner "" (the root of the fileset) is never included in the included directories followSymlinks defaults to false
Nested Class Summary | |
protected class |
FTP.FTPDirectoryScanner.AntFTPFile
an AntFTPFile is a representation of a remote file |
protected class |
FTP.FTPDirectoryScanner.AntFTPRootFile
special class to represent the remote directory itself |
Field Summary | |
protected org.apache.commons.net.ftp.FTPClient |
ftp
|
Fields inherited from class org.apache.tools.ant.DirectoryScanner |
basedir, DEFAULTEXCLUDES, dirsDeselected, dirsExcluded, dirsIncluded, dirsNotIncluded, everythingIncluded, excludes, filesDeselected, filesExcluded, filesIncluded, filesNotIncluded, haveSlowResults, includes, isCaseSensitive, selectors |
Constructor Summary | |
FTP.FTPDirectoryScanner(org.apache.commons.net.ftp.FTPClient ftp)
constructor |
Method Summary | |
org.apache.commons.net.ftp.FTPFile[] |
listFiles(java.lang.String directory)
cd into one directory and list the files present in one directory. |
org.apache.commons.net.ftp.FTPFile[] |
listFiles(java.lang.String directory,
boolean changedir)
list the files present in one directory. |
void |
scan()
scans the remote directory, storing internally the included files, directories, ... |
protected void |
scandir(java.lang.String dir,
java.lang.String vpath,
boolean fast)
scans a particular directory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.commons.net.ftp.FTPClient ftp
Constructor Detail |
public FTP.FTPDirectoryScanner(org.apache.commons.net.ftp.FTPClient ftp)
ftp
- ftpclient objectMethod Detail |
public void scan()
scan
in interface FileScanner
scan
in class DirectoryScanner
protected void scandir(java.lang.String dir, java.lang.String vpath, boolean fast)
dir
- directory to scanvpath
- relative path to the base directory of the remote fileset
always ended with a File.separatorfast
- seems to be always true in practicepublic org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String directory, boolean changedir)
directory
- full path on the remote sidechangedir
- if true change to directory directory before listing
public org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String directory)
directory
- full path on the remote side
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |