org.apache.ftpserver.command.impl.listing
Class ListArgument

java.lang.Object
  extended by org.apache.ftpserver.command.impl.listing.ListArgument

public class ListArgument
extends Object

Internal class, do not use directly. Contains the parsed argument for a list command (e.g. LIST or NLST)

Author:
Apache MINA Project

Constructor Summary
ListArgument(String file, String pattern, char[] options)
           
 
Method Summary
 String getFile()
          The file path including the directory
 char[] getOptions()
          The listing options,
 String getPattern()
          The regular expression pattern that files must match
 boolean hasOption(char option)
          Checks if a certain option is set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListArgument

public ListArgument(String file,
                    String pattern,
                    char[] options)
Parameters:
file - The file path including the directory
pattern - A regular expression pattern that files must match
options - List options, such as -la
Method Detail

getOptions

public char[] getOptions()
The listing options,

Returns:
All options

getPattern

public String getPattern()
The regular expression pattern that files must match

Returns:
The regular expression

hasOption

public boolean hasOption(char option)
Checks if a certain option is set

Parameters:
option - The option to check
Returns:
true if the option is set

getFile

public String getFile()
The file path including the directory

Returns:
The file path


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.