public interface FtpFileListParser
Modifier and Type | Method and Description |
---|---|
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.
|
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.© 2000-2025 Flux Corporation. All rights reserved.