|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FTPFileEntryParser defines the interface for parsing a single FTP file listing and converting that information into an FTPFile instance. Sometimes you will want to parse unusual listing formats, in which case you would create your own implementation of FTPFileEntryParser and if necessary, subclass FTPFile.
FTPFile
,
FTPClient.createFileList(org.apache.commons.net.ftp.FTPFileEntryParser)
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. |
java.lang.String |
readNextEntry(java.io.BufferedReader reader)
Reads the next entry using the supplied BufferedReader object up to whatever delemits one entry from the next. |
Method Detail |
public FTPFile parseFTPEntry(java.lang.String listEntry)
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
public java.lang.String readNextEntry(java.io.BufferedReader reader) throws java.io.IOException
reader
- The BufferedReader object from which entries are to be
read.
java.io.IOException
- thrown on any IO Error reading from the reader.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |