org.apache.ftpserver.util
Class RegularExpr

java.lang.Object
  extended by org.apache.ftpserver.util.RegularExpr

public class RegularExpr
extends Object

This is a simplified regular character mattching class. Supports *?^[]- pattern characters.

Author:
Rana Bhattacharyya

Constructor Summary
RegularExpr(String pattern)
          Constructor.
 
Method Summary
 boolean isMatch(String name)
          Compare string with a regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularExpr

public RegularExpr(String pattern)
Constructor.

Parameters:
pattern - regular expression
Method Detail

isMatch

public boolean isMatch(String name)
Compare string with a regular expression.



Copyright © 2001-2012 Codehaus. All Rights Reserved.