edtFTPj

com.enterprisedt.net.ftp
Class FTPFileFactory

java.lang.Object
  extended by com.enterprisedt.net.ftp.FTPFileFactory

public class FTPFileFactory
extends Object

Factory for creating FTPFile objects

Version:
$Revision: 1.15 $
Author:
Bruce Blackshaw

Field Summary
static String cvsId
          Revision control id
 
Constructor Summary
FTPFileFactory(FTPFileParser parser)
          Constructor.
FTPFileFactory(String system)
          Constructor
 
Method Summary
 String getSystem()
          Get the SYST string
 VMSFileParser getVMSParser()
          Return a reference to the VMS parser being used.
 FTPFile[] parse(String[] files)
          Parse an array of raw file information returned from the FTP server
 void setLocale(Locale locale)
          Set the locale for date parsing of listings
 
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

FTPFileFactory

public FTPFileFactory(String system)
               throws FTPException
Constructor

Parameters:
system - SYST string
Throws:
FTPException

FTPFileFactory

public FTPFileFactory(FTPFileParser parser)
Constructor. User supplied parser. Note that parser rotation (in case of a ParseException) is disabled if a parser is explicitly supplied

Parameters:
parser - the parser to use
Method Detail

getVMSParser

public VMSFileParser getVMSParser()
Return a reference to the VMS parser being used. This allows the user to set VMS-specific settings on the parser.

Returns:
VMSFileParser object

setLocale

public void setLocale(Locale locale)
Set the locale for date parsing of listings

Parameters:
locale - locale to set

parse

public FTPFile[] parse(String[] files)
                throws ParseException
Parse an array of raw file information returned from the FTP server

Parameters:
files - array of strings
Returns:
array of FTPFile objects
Throws:
ParseException

getSystem

public String getSystem()
Get the SYST string

Returns:
the system string.

edtFTPj

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