java.lang.Object
|
+--org.apache.commons.net.ftp.FTPFileEntryParserImpl
|
+--org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
|
+--org.apache.commons.net.ftp.parser.UnixFTPEntryParser
Known Direct Subclasses:org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions)
The sole constructor for a UnixFTPEntryParser object. |
parseFTPEntry(String entry) Parses a line of a unix (standard) FTP server file listing and converts it into a usable format in the form of an FTPFile instance. |
public UnixFTPEntryParser()
- Thrown if the regular expression is unparseable.public FTPFile parseFTPEntry(String entry)
FTPFile
instance. If the file listing line doesn't describe a file,
null is returned, otherwise a FTPFile
instance representing the files in the directory is returned.