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

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

public class ListArgument
extends java.lang.Object

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

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
ListArgument(java.lang.String file, java.lang.String pattern, char[] options)
           
 
Method Summary
 java.lang.String getFile()
          The file path including the directory
 char[] getOptions()
          The listing options,
 java.lang.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(java.lang.String file,
                    java.lang.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 java.lang.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 java.lang.String getFile()
The file path including the directory

Returns:
The file path


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