| org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl org.apache.commons.net.ftp.parser.UnixFTPEntryParser
All known Subclasses: org.apache.commons.net.ftp.DefaultFTPFileListParser,
UnixFTPEntryParser | public class UnixFTPEntryParser extends ConfigurableFTPFileEntryParserImpl (Code) | | Implementation FTPFileEntryParser and FTPFileListParser for standard
Unix Systems.
This class is based on the logic of Daniel Savarese's
DefaultFTPListParser, but adapted to use regular expressions and to fit the
new FTPFileEntryParser interface.
version: $Id: UnixFTPEntryParser.java 161712 2005-04-18 02:57:04Z scohen $ See Also: org.apache.commons.net.ftp.FTPFileEntryParser See Also: FTPFileEntryParser (for usage instructions) |
DEFAULT_DATE_FORMAT | final static String DEFAULT_DATE_FORMAT(Code) | | |
DEFAULT_RECENT_DATE_FORMAT | final static String DEFAULT_RECENT_DATE_FORMAT(Code) | | |
NUMERIC_DATE_CONFIG | final public static FTPClientConfig NUMERIC_DATE_CONFIG(Code) | | Some Linux distributions are now shipping an FTP server which formats
file listing dates in an all-numeric format:
"yyyy-MM-dd HH:mm .
This is a very welcome development, and hopefully it will soon become
the standard. However, since it is so new, for now, and possibly
forever, we merely accomodate it, but do not make it the default.
For now end users may specify this format only via
UnixFTPEntryParser(FTPClientConfig) .
Steve Cohen - 2005-04-17
|
NUMERIC_DATE_FORMAT | final static String NUMERIC_DATE_FORMAT(Code) | | |
UnixFTPEntryParser | public UnixFTPEntryParser()(Code) | | The default constructor for a UnixFTPEntryParser object.
exception: IllegalArgumentException - Thrown if the regular expression is unparseable. Should not be seenunder normal conditions. It it is seen, this is a sign thatREGEX is not a valid regular expression. |
UnixFTPEntryParser | public UnixFTPEntryParser(FTPClientConfig config)(Code) | | This constructor allows the creation of a UnixFTPEntryParser object with
something other than the default configuration.
Parameters: config - The FTPClientConfig configuration object used to configure this parser. exception: IllegalArgumentException - Thrown if the regular expression is unparseable. Should not be seenunder normal conditions. It it is seen, this is a sign thatREGEX is not a valid regular expression. since: 1.4 |
getDefaultConfiguration | protected FTPClientConfig getDefaultConfiguration()(Code) | | Defines a default configuration to be used when this class is
instantiated without a
FTPClientConfig FTPClientConfig parameter being specified.
the default configuration for this parser. |
parseFTPEntry | public FTPFile parseFTPEntry(String entry)(Code) | | 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. 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.
Parameters: entry - A line of text from the file listing An FTPFile instance corresponding to the supplied entry |
Fields inherited from org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl | protected PatternMatcher _matcher_(Code)(Java Doc)
|
|
|