aQute.libg.glob
Class Glob

java.lang.Object
  extended by aQute.libg.glob.Glob

public class Glob
extends Object


Constructor Summary
Glob(String globString)
           
Glob(String globString, int flags)
           
 
Method Summary
 List<File> getFiles(File root, boolean recursive, boolean usePath)
          Get a list of files that match the glob expression
 void getFiles(File root, List<File> result, boolean recursive, boolean usePath)
           
 Matcher matcher(CharSequence input)
           
 void select(List<?> objects)
           
static Pattern toPattern(String s)
           
static Pattern toPattern(String s, int flags)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Glob

public Glob(String globString)

Glob

public Glob(String globString,
            int flags)
Method Detail

matcher

public Matcher matcher(CharSequence input)

toString

public String toString()
Overrides:
toString in class Object

select

public void select(List<?> objects)

toPattern

public static Pattern toPattern(String s)

toPattern

public static Pattern toPattern(String s,
                                int flags)

getFiles

public List<File> getFiles(File root,
                           boolean recursive,
                           boolean usePath)
Get a list of files that match the glob expression

Parameters:
root - the directory to get the files from
recursive - to traverse the dirs recursive
Returns:

getFiles

public void getFiles(File root,
                     List<File> result,
                     boolean recursive,
                     boolean usePath)


Copyright © 2014 aQute SARL. All rights reserved.