FTPFileListParser
public final class DefaultFTPFileListParser extends java.lang.Object implements FTPFileListParser
FTPFileListParser
,
FTPFile
,
FTPClient.listFiles(com.oroinc.net.ftp.FTPFileListParser, java.lang.String)
Constructor | Description |
---|---|
DefaultFTPFileListParser() |
Modifier and Type | Method | Description |
---|---|---|
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. |
FTPFile |
parseFTPEntry(java.lang.String entry) |
Parses an FTP server listing entry (a single line) and returns an
FTPFile instance with the resulting information.
|
public FTPFile parseFTPEntry(java.lang.String entry)
entry
- A single line of an FTP server listing with the
end of line truncated.public FTPFile[] parseFileList(java.io.InputStream listStream) throws java.io.IOException
FTPFile
instances. If the
file list contains no files, null
is returned, otherwise
an array of FTPFile
instances representing the files in
the directory is returned.
parseFileList
in interface FTPFileListParser
listStream
- The InputStream from which the file list should be
read.java.io.IOException
- If an I/O error occurs reading the listStream.Copyright © 1997-2002 Daniel F. Savarese. All Rights Reserved.