FTPFileListParserpublic interface FTPFileListParser FTPFileListParser defines the interface for parsing FTP file listings
and converting that information into an array of
{@link org.apache.commons.net.ftp.FTPFile} instances.
Sometimes you will want to parse unusual listing formats, in which
case you would create your own implementation of FTPFileListParser and
if necessary, subclass FTPFile.
|
Methods Summary |
---|
public FTPFile[] | parseFileList(java.io.InputStream listStream, java.lang.String encoding)Parses an FTP server file listing and converts it into a usable format
in the form of an array of FTPFile instances. If the
file list contains no files, null should be
returned, otherwise an array of FTPFile instances
representing the files in the directory is returned.
| public FTPFile[] | parseFileList(java.io.InputStream listStream)Parses an FTP server file listing and converts it into a usable format
in the form of an array of FTPFile instances. If the
file list contains no files, null should be
returned, otherwise an array of FTPFile instances
representing the files in the directory is returned.
|
|