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 boolean
containsAt(char[] array, int offset, char[] pattern)
Tests whether the given array match the pattern at the given position.static int
indexOf(char[] chars, char[] pattern, int offset)
Variant of indexOf with ? wildcard.boolean
match(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.
-
-