org.apache.commons.net.ftp.parser
Class NTFTPEntryParser
- FTPFileEntryParser, FTPFileListParser
public class NTFTPEntryParser
Implementation of FTPFileEntryParser and FTPFileListParser for NT Systems.
Version:
- Winston Ojeda
- Steve Cohen
FTPFileEntryParser (for usage instructions)
private static String | REGEX - this is the regular expression used by this parser.
|
FTPFile | parseFTPEntry(String entry) - Parses a line of an NT FTP server file listing and converts it into a
usable format in the form of an
FTPFile instance.
|
REGEX
private static final String REGEX
this is the regular expression used by this parser.
NTFTPEntryParser
public NTFTPEntryParser()
The sole constructor for an NTFTPEntryParser object.
parseFTPEntry
public FTPFile parseFTPEntry(String entry)
Parses a line of an NT FTP server file listing and converts it into a
usable format in the form of an
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.
- parseFTPEntry in interface FTPFileEntryParser
entry
- A line of text from the file listing
- An FTPFile instance corresponding to the supplied entry