Package org.anchoranalysis.io.input.path
Class GlobExtractor
Object
GlobExtractor
Extracts a glob from a string describing it, and a direcory which gives it context.
- Author:
- Owen Feehan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A string describing a glob, associated with a directory onto which it will be applied. -
Method Summary
Modifier and TypeMethodDescriptionExtracts a glob, and a directory portion if it exists from a string with a wildcard.
-
Method Details
-
extract
Extracts a glob, and a directory portion if it exists from a string with a wildcard.Note that any back-slashes will be converted to forward-slashes.
- Parameters:
wildcardString
- a string containing a wildcard.- Returns:
- a GlobWithDirectory where the directory is null if it doesn't exist.
-