public interface FTPFileListParser
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.
FTPFile
,
FTPClient.listFiles(java.lang.String, java.lang.String)
Modifier and Type | Method and Description |
---|---|
FTPFile[] |
parseFileList(java.io.InputStream listStream)
Deprecated.
Parses an FTP server file listing and converts it into a usable format
in the form of an array of
FTPFile instances. |
FTPFile[] |
parseFileList(java.io.InputStream listStream,
java.lang.String encoding)
Deprecated.
Parses an FTP server file listing and converts it into a usable format
in the form of an array of
FTPFile instances. |
FTPFile[] parseFileList(java.io.InputStream listStream, java.lang.String encoding) throws java.io.IOException
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.
listStream
- The InputStream from which the file list should be
read.encoding
- The encoding to use.java.io.IOException
- If an I/O error occurs reading the listStream.FTPFile[] parseFileList(java.io.InputStream listStream) throws java.io.IOException
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.
listStream
- The InputStream from which the file list should be
read.java.io.IOException
- If an I/O error occurs reading the listStream.