com.enterprisedt.net.ftp
Class FTPFileFactory

java.lang.Object
  extended bycom.enterprisedt.net.ftp.FTPFileFactory

public class FTPFileFactory
extends java.lang.Object

Factory for creating FTPFile objects

Version:
$Revision: 1.10 $
Author:
Bruce Blackshaw

Field Summary
static java.lang.String cvsId
          Revision control id
 
Constructor Summary
FTPFileFactory(FTPFileParser parser)
          Constructor.
FTPFileFactory(java.lang.String system)
          Constructor
 
Method Summary
 java.lang.String getSystem()
          Get the SYST string
 FTPFile[] parse(java.lang.String[] files)
          Parse an array of raw file information returned from the FTP server
 void setLocale(java.util.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 java.lang.String cvsId
Revision control id

Constructor Detail

FTPFileFactory

public FTPFileFactory(java.lang.String system)
               throws FTPException
Constructor

Parameters:
system - SYST string

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

setLocale

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

Parameters:
locale - locale to set

parse

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

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

getSystem

public java.lang.String getSystem()
Get the SYST string

Returns:
the system string.


Copyright (c) 2001-2004 Enterprise Distributed Technologies Ltd. All Rights Reserved.