it.sauronsoftware.ftp4j.listparsers
Class UnixListParser

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

public class UnixListParser
extends java.lang.Object
implements FTPListParser

This parser can handle the result of a list ftp command as it is a UNIX "ls -l" command response.

Author:
Carlo Pelliccia

Constructor Summary
UnixListParser()
           
 
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

UnixListParser

public UnixListParser()
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.