|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.das2.util.filesystem.Glob
public class Glob
known bug: *.java matches ".java". The unix glob behavior is to require that a leading . must be explicitly matched.
| Constructor Summary | |
|---|---|
Glob()
|
|
| Method Summary | |
|---|---|
static javax.swing.filechooser.FileFilter |
getGlobFileFilter(java.lang.String glob)
|
static java.util.regex.Pattern |
getPattern(java.lang.String glob)
converts a glob into a Pattern. |
static java.lang.String |
getRegex(java.lang.String glob)
converts a glob into a regex. |
static FileObject[] |
unGlob(FileSystem fs,
java.lang.String glob)
unglob the glob into an array of the matching FileObjects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Glob()
| Method Detail |
|---|
public static java.util.regex.Pattern getPattern(java.lang.String glob)
glob - a string like '*.dat'
public static java.lang.String getRegex(java.lang.String glob)
public static FileObject[] unGlob(FileSystem fs,
java.lang.String glob)
throws java.io.IOException
glob -
java.io.IOExceptionpublic static javax.swing.filechooser.FileFilter getGlobFileFilter(java.lang.String glob)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||