java.lang.Object
com.pervasive.datarush.io.UnixStyleGlobbing
Provides UNIX-style globbing over paths. This class is intended for use in
implementing file systems. Globbing is performed by breadth-first recursive
decent over the file system, applying an appropriate filter at each level.
A limited form of UNIX file globbing is supported. The standard wildcards '*'
and '?' may be used, as may character sets (delimited by '[' and ']').
Alternations - {a,b,c} for example - are supported, but
alternatives may not span directories. That is, {a/b,c} is not
valid.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides information for performing globbing. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a globber for the specified file system using the defined globbing. -
Method Summary
Modifier and TypeMethodDescriptionReturns paths that match defined glob pattern.
-
Constructor Details
-
UnixStyleGlobbing
Constructs a globber for the specified file system using the defined globbing.- Parameters:
fs- the file system to which globbing is appliedglob- the matching pattern to use
-
-
Method Details
-
findMatches
Returns paths that match defined glob pattern.- Throws:
IOException- thrown if an I/O error occurs accessing paths
-