java.lang.Object | +--org.apache.commons.net.ftp.FTPFileIterator
org.apache.commons.net.ftp.FTPFileList
org.apache.commons.net.ftp.FTPFileEntryParser
org.apache.commons.net.ftp.FTPListParseEngine
FTPFile[] | getFiles() Returns a list of FTPFile objects for ALL files listed in the server's LIST output. |
FTPFile[] | getNext(int quantityRequested) Returns an array of at most quantityRequested FTPFile objects starting at this iterator's current position within its associated list. |
FTPFile[] | getPrevious(int quantityRequested) Returns an array of at most quantityRequested FTPFile objects starting at the position preceding this iterator's current position within its associated list. |
boolean | hasNext() Method for determining whether getNext() will successfully return a non-null value. |
boolean | Method for determining whether getPrevious() will successfully return a non-null value. |
next() Returns a single parsed FTPFile object corresponding to the raw input line at this iterator's current position. | |
previous() Returns a single parsed FTPFile object corresponding to the raw input line at the position preceding that of the internal iterator over the list of raw lines maintained by this object After this method is called the internal iterator is retreated by one element (unless it is already at beginning of list). |
public FTPFile[] getFiles()
public FTPFile[] getNext(int quantityRequested)
quantityRequested FTPFile
objects starting at this iterator's current position within its
associated list. If fewer than quantityRequested such
elements are available, the returned array will have a length equal
to the number of entries at and after after the current position.
If no such entries are found, this array will have a length of 0.
After this method is called the current position is advanced by
either quantityRequested or the number of entries
available after the iterator, whichever is fewer.
public FTPFile[] getPrevious(int quantityRequested)
quantityRequested FTPFile
objects starting at the position preceding this iterator's current
position within its associated list. If fewer than
quantityRequested such elements are available, the
returned array will have a length equal to the number of entries after
the iterator. If no such entries are found, this array will have a
length of 0. The entries will be ordered in the same order as the
list, not reversed.
After this method is called the current position is moved back by
either quantityRequested or the number of entries
available before the current position, whichever is fewer.
public boolean hasNext()
public boolean hasPrevious()
public FTPFile next()
public FTPFile previous()