it.sauronsoftware.ftp4j.listparsers
Class DOSListParser

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

public class DOSListParser
extends java.lang.Object
implements FTPListParser

This parser can handle the MSDOS-style LIST responses.

Author:
Carlo Pelliccia

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

DOSListParser

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