| org.apache.commons.net.ftp.FTPFileListParser
All known Subclasses: org.apache.commons.net.ftp.FTPFileEntryParserImpl,
FTPFileListParser | public interface FTPFileListParser (Code) | | FTPFileListParser defines the interface for parsing FTP file listings
and converting that information into an array of
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.
author: Daniel F. Savarese See Also: FTPFile See Also: FTPClient.listFiles |
Method Summary | |
FTPFile[] | parseFileList(InputStream listStream, String encoding) Parses an FTP server file listing and converts it into a usable format
in the form of an array of FTPFile instances. | FTPFile[] | parseFileList(InputStream listStream) Parses an FTP server file listing and converts it into a usable format
in the form of an array of FTPFile instances. |
parseFileList | FTPFile[] parseFileList(InputStream listStream, String encoding) throws IOException(Code) | | 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.
Parameters: listStream - The InputStream from which the file list should beread. Parameters: encoding - The encoding to use. The list of file information contained in the given path. nullif the list could not be obtained or if there are no files inthe directory. exception: IOException - If an I/O error occurs reading the listStream. |
parseFileList | FTPFile[] parseFileList(InputStream listStream) throws IOException(Code) | | 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.
Parameters: listStream - The InputStream from which the file list should beread. The list of file information contained in the given path. nullif the list could not be obtained or if there are no files inthe directory. exception: IOException - If an I/O error occurs reading the listStream. |
|
|