it.sauronsoftware.ftp4j.listparsers
Class MLSDListParser

java.lang.Object
  extended by it.sauronsoftware.ftp4j.listparsers.MLSDListParser
All Implemented Interfaces:
FTPListParser

public class MLSDListParser
extends java.lang.Object
implements FTPListParser

This parser can handle the standard MLST/MLSD responses (RFC 3659).

Since:
1.5
Author:
Carlo Pelliccia

Constructor Summary
MLSDListParser()
           
 
Method Summary
 FTPFile[] parse(java.lang.String[] lines)
          Parses a LIST command response and builds an array of FTPFile objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLSDListParser

public MLSDListParser()
Method Detail

parse

public FTPFile[] parse(java.lang.String[] lines)
                throws FTPListParseException
Description copied from interface: FTPListParser
Parses a LIST command response and builds an array of FTPFile objects.

Specified by:
parse in interface FTPListParser
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.