edtFTPj

com.enterprisedt.net.ftp
Class MLSXEntryParser

java.lang.Object
  extended by com.enterprisedt.net.ftp.FTPFileParser
      extended by 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: 1.1 $
Author:
Bruce Blackshaw

Field Summary
static String cvsId
          Revision control id
 
Constructor Summary
MLSXEntryParser()
           
 
Method Summary
 FTPFile parse(String raw)
          Parse server supplied string that is returned from MLST/D
 void setLocale(Locale locale)
          Set the locale for date parsing of listings.
 
Methods inherited from class com.enterprisedt.net.ftp.FTPFileParser
split, split, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final String cvsId
Revision control id

See Also:
Constant Field Values
Constructor Detail

MLSXEntryParser

public MLSXEntryParser()
Method Detail

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

edtFTPj

Copyright © 2000-2007 Enterprise Distributed Technologies. All Rights Reserved.