Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.net.ftp.parser
Interface FTPTimestampParser

All Known Implementing Classes:
  FTPTimestampParserImpl

    public interface FTPTimestampParser

This interface specifies the concept of parsing an FTP server's timestamp.

Since:
  1.4

Field Summary
`static String` | `DEFAULT_RECENT_SDF` the default recent date format.
`static String` | `DEFAULT_SDF` the default default date format.

Method Summary
`Calendar` | `parseTimestamp(String timestampStr)` Parses the supplied datestamp parameter.

Field Detail

### DEFAULT_SDF

    static final String DEFAULT_SDF

  the default default date format.

  See Also:
    Constant Field Values

### DEFAULT_RECENT_SDF

    static final String DEFAULT_RECENT_SDF

  the default recent date format.

  See Also:
    Constant Field Values

Method Detail

### parseTimestamp

    Calendar parseTimestamp(String timestampStr)
                            throws ParseException

  Parses the supplied datestamp parameter. This parameter typically would have been pulled from a longer FTP listing via the regular expression mechanism

  Parameters:
    `timestampStr` - - the timestamp portion of the FTP directory listing to be parsed
  Returns:
    a `java.util.Calendar` object initialized to the date parsed by the parser
  Throws:
    `ParseException` - if none of the parser mechanisms belonging to the implementor can parse the input.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.