bpp
Class Unglobber

java.lang.Object
  extended bybpp.Unglobber

public class Unglobber
extends java.lang.Object

Convenience class to unglob file names with the following conventions:

formfunction
-1 parent directory (like ..)
--0 or more parent directories
+1 child directory
++0 or more child directories
namename, with * wildcard supported (matching any character except a directory separator
?regexpMatches the given regular expression

Examples:

WARNING: Using ++ after -- will result in an infinite recursion.


Constructor Summary
Unglobber(java.lang.String pattern)
          Construct an unglobber based on a string pattern which is split on the file.separator system property value.
Unglobber(java.lang.String[] spattern)
          Construct an unglobber already split into parts.
 
Method Summary
static void main(java.lang.String[] args)
          Test the unglobber: unglob given args in the current working directory.
 java.io.File[] unglob()
          Unglob a file set based on the current working directory.
 java.io.File[] unglob(java.io.File root)
          Unglob a file set based on the given root file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unglobber

public Unglobber(java.lang.String pattern)
Construct an unglobber based on a string pattern which is split on the file.separator system property value.


Unglobber

public Unglobber(java.lang.String[] spattern)
Construct an unglobber already split into parts.

Method Detail

unglob

public java.io.File[] unglob(java.io.File root)
Unglob a file set based on the given root file


unglob

public java.io.File[] unglob()
Unglob a file set based on the current working directory.


main

public static void main(java.lang.String[] args)
Test the unglobber: unglob given args in the current working directory.