|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.net.ftp.FTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.CompositeFileEntryParser
public class CompositeFileEntryParser
This implementation allows to pack some FileEntryParsers together and handle the case where to returned dirstyle isnt clearly defined. The matching parser will be cached. If the cached parser wont match due to the server changed the dirstyle, a new matching parser will be searched.
Constructor Summary | |
---|---|
CompositeFileEntryParser(FTPFileEntryParser[] ftpFileEntryParsers)
|
Method Summary | |
---|---|
FTPFile |
parseFTPEntry(java.lang.String listEntry)
Parses a line of an FTP server file listing and converts it into a usable format in the form of an FTPFile instance. |
Methods inherited from class org.apache.commons.net.ftp.FTPFileEntryParserImpl |
---|
preParse, readNextEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeFileEntryParser(FTPFileEntryParser[] ftpFileEntryParsers)
Method Detail |
---|
public FTPFile parseFTPEntry(java.lang.String listEntry)
FTPFileEntryParser
FTPFile
instance. If the
file listing line doesn't describe a file, null
should be
returned, otherwise a FTPFile
instance representing the
files in the directory is returned.
listEntry
- A line of text from the file listing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |