Class FtpParser

java.lang.Object
ecmwf.common.ftp.FtpParser

public final class FtpParser extends Object
The Class FtpParser.
  • Field Details

    • REMOTE_OS

      public static final String[] REMOTE_OS
      The Constant REMOTE_OS.
    • FILE_TYPE

      public static final int FILE_TYPE
      The Constant FILE_TYPE.
      See Also:
    • DIRECTORY_TYPE

      public static final int DIRECTORY_TYPE
      The Constant DIRECTORY_TYPE.
      See Also:
    • UNKNOWN_TYPE

      public static final int UNKNOWN_TYPE
      The Constant UNKNOWN_TYPE.
      See Also:
  • Constructor Details

    • FtpParser

      public FtpParser()
  • Method Details

    • parseDir

      public static FtpParser.FileEntry[] parseDir(String regexFormat, String systemKey, String defaultDateFormat, String recentDateFormat, String serverLanguageCode, String shortMonthNames, String serverTimeZoneId, String[] filenames) throws IOException
      Parses the dir.
      Parameters:
      regexFormat - the regex format
      systemKey - the system key
      defaultDateFormat - the default date format
      recentDateFormat - the recent date format
      serverLanguageCode - the server language code
      shortMonthNames - the short month names
      serverTimeZoneId - the server time zone id
      filenames - the filenames
      Returns:
      the file entry[]
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • main

      public static void main(String[] args) throws IOException
      The main method.
      Parameters:
      args - the arguments
      Throws:
      IOException - Signals that an I/O exception has occurred.