Package org.nuxeo.common.utils
Class FileNamePattern
- java.lang.Object
-
- org.nuxeo.common.utils.FileNamePattern
-
public class FileNamePattern extends Object
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description FileNamePattern(String pattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancontainsAt(char[] array, int offset, char[] pattern)Tests whether the given array match the pattern at the given position.static intindexOf(char[] chars, char[] pattern, int offset)Variant of indexOf with ? wildcard.booleanmatch(String text)
-
-
-
Constructor Detail
-
FileNamePattern
public FileNamePattern(String pattern)
-
-
Method Detail
-
match
public boolean match(String text)
-
indexOf
public static int indexOf(char[] chars, char[] pattern, int offset)Variant of indexOf with ? wildcard.
-
containsAt
public static boolean containsAt(char[] array, int offset, char[] pattern)Tests whether the given array match the pattern at the given position. Matching allows ? wildcards.
-
-