|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FtpFileListParser
Contains the methods that a custom FTP file list parser must implement in order to provide FTP actions with the ability to parse non-standard FTP directory listings.
Method Summary | |
---|---|
boolean |
isDirectory(java.lang.String line)
Returns true if the specified line from an FTP file list represents a directory. |
boolean |
isFile(java.lang.String line)
Returns true if the specified line from an FTP file list represents a file. |
boolean |
isHeader(java.lang.String line)
Returns true if the specified line from an FTP file list is a header line. |
java.lang.String |
parseForFileName(java.lang.String line)
Parses the specified line from an FTP file list and returns the file name within the line. |
long |
parseForFileSize(java.lang.String line)
Parses the specified line from an FTP file list and returns the file size of the file name within the line. |
java.util.Date |
parseForTimestamp(java.lang.String line)
Parses the specified line from an FTP file list and returns the timestamp within the line. |
Method Detail |
---|
boolean isDirectory(java.lang.String line)
line
- A line from an FTP file list.
boolean isFile(java.lang.String line)
line
- A line from an FTP file list.
boolean isHeader(java.lang.String line)
line
- A line from an FTP file list.
java.lang.String parseForFileName(java.lang.String line) throws java.text.ParseException
line
- A line from an FTP file list.
java.text.ParseException
- If no file name was found within the line.long parseForFileSize(java.lang.String line) throws java.text.ParseException
line
- A line from an FTP file list.
java.text.ParseException
- If no file size was found within the line.java.util.Date parseForTimestamp(java.lang.String line) throws java.text.ParseException
line
- A line from an FTP file list.
java.text.ParseException
- If no timestamp was found within the line.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |