|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockftpserver.core.util.PatternUtil
public class PatternUtil
Contains static utility methods related to pattern-matching and regular expressions.
| Method Summary | |
|---|---|
static boolean |
containsWildcards(String string)
Return true if the specified String contains one or more wildcard characters ('?' or '*') |
static String |
convertStringWithWildcardsToRegex(String stringWithWildcards)
Convert the specified String, optionally containing wildcards (? or *), to a regular expression String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean containsWildcards(String string)
string - - the String to check
public static String convertStringWithWildcardsToRegex(String stringWithWildcards)
stringWithWildcards - - the String to convert, optionally containing wildcards (? or *)
AssertionError - - if the stringWithWildcards is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||