public class FTPFileFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsId
Revision control id
|
| Constructor and Description |
|---|
FTPFileFactory(FTPFileParser parser)
Constructor.
|
FTPFileFactory(java.lang.String system)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParser(FTPFileParser parser)
Rather than forcing a parser (as in the constructor that accepts
a parser), this adds a parser to the list of those used.
|
void |
detectParser(java.lang.String[] files) |
java.lang.String |
getSystem()
Get the SYST string
|
VMSFileParser |
getVMSParser()
Return a reference to the VMS parser being used.
|
FTPFile |
parse(java.lang.String line)
Parse a single line of file listing
|
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
|
void |
setLocales(java.util.Locale[] locales)
Set the locales to try for date parsing of listings
|
java.lang.String |
toString() |
public static final java.lang.String cvsId
public FTPFileFactory(java.lang.String system)
throws FTPException
system - SYST stringFTPExceptionpublic FTPFileFactory(FTPFileParser parser)
parser - the parser to usepublic java.lang.String toString()
toString in class java.lang.Objectpublic VMSFileParser getVMSParser()
public void addParser(FTPFileParser parser)
parser - user supplied parser to addpublic void setLocale(java.util.Locale locale)
locale - locale to setpublic void setLocales(java.util.Locale[] locales)
locales - locales to trypublic void detectParser(java.lang.String[] files)
public FTPFile parse(java.lang.String line) throws java.text.ParseException
line - java.text.ParseExceptionpublic FTPFile[] parse(java.lang.String[] files) throws java.text.ParseException
files - array of stringsjava.text.ParseExceptionpublic java.lang.String getSystem()
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.