it.sauronsoftware.ftp4j
Interface FTPListParser

All Known Implementing Classes:
DOSListParser, EPLFListParser, MLSDListParser, NetWareListParser, UnixListParser

public interface FTPListParser

Implement this interface to build a new LIST parser. List parsers are called to parse the result of a FTP LIST command send to the server in the list() method. You can add a custom parser to your instance of FTPClient calling on it the method addListParser.

Author:
Carlo Pelliccia
See Also:
FTPClient.addListParser(FTPListParser)

Method Summary
 FTPFile[] parse(java.lang.String[] lines)
          Parses a LIST command response and builds an array of FTPFile objects.
 

Method Detail

parse

FTPFile[] parse(java.lang.String[] lines)
                throws FTPListParseException
Parses a LIST command response and builds an array of FTPFile objects.

Parameters:
lines - The response to parse, splitted by line.
Returns:
An array of FTPFile objects representing the result of the operation.
Throws:
FTPListParseException - If this parser cannot parse the given response.