Class FileNamePattern

java.lang.Object
org.nuxeo.common.utils.FileNamePattern

public class FileNamePattern extends Object
Author:
Bogdan Stefanescu
  • Constructor Details

    • FileNamePattern

      public FileNamePattern(String pattern)
  • Method Details

    • 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.