|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.enterprisedt.net.ftp.FTPFileFactory
public class FTPFileFactory
Factory for creating FTPFile objects
Field Summary | |
---|---|
static java.lang.String |
cvsId
Revision control id |
Constructor Summary | |
---|---|
FTPFileFactory(FTPFileParser parser)
Constructor. |
|
FTPFileFactory(java.lang.String system)
Constructor |
Method Summary | |
---|---|
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String cvsId
Constructor Detail |
---|
public FTPFileFactory(java.lang.String system) throws FTPException
system
- SYST string
FTPException
public FTPFileFactory(FTPFileParser parser)
parser
- the parser to useMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public 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 FTPFile parse(java.lang.String line) throws java.text.ParseException
line
-
java.text.ParseException
public FTPFile[] parse(java.lang.String[] files) throws java.text.ParseException
files
- array of strings
java.text.ParseException
public java.lang.String getSystem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |