Class MLSXEntryParser

java.lang.Object
com.enterprisedt.net.ftp.FTPFileParser
com.enterprisedt.net.ftp.MLSXEntryParser

public class MLSXEntryParser extends FTPFileParser
Parses the string returned from the MLSD or MLST command (defined in the "Extensions to FTP" IETF draft). Just grabs the basic fields, as most servers don't support anything else.
Version:
$Revision$
Author:
Bruce Blackshaw
  • Field Details

  • Constructor Details

    • MLSXEntryParser

      public MLSXEntryParser()
  • Method Details

    • parse

      public FTPFile parse(String raw) throws ParseException
      Parse server supplied string that is returned from MLST/D
      Specified by:
      parse in class FTPFileParser
      Parameters:
      raw - raw string to parse
      Throws:
      ParseException
    • setLocale

      public void setLocale(Locale locale)
      Set the locale for date parsing of listings. As the timestamps follow a standard without names of months, this is not used in this parser.
      Specified by:
      setLocale in class FTPFileParser
      Parameters:
      locale - locale to set