@Private
@Unstable
public class GlobExpander
extends java.lang.Object
| Constructor | Description |
|---|---|
GlobExpander() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<java.lang.String> |
expand(java.lang.String filePattern) |
Expand globs in the given
filePattern into a collection of
file patterns so that in the expanded set no file pattern has a slash
character ("/") in a curly bracket pair. |
public static java.util.List<java.lang.String> expand(java.lang.String filePattern)
throws java.io.IOException
filePattern into a collection of
file patterns so that in the expanded set no file pattern has a slash
character ("/") in a curly bracket pair.
Some examples of how the filePattern is expanded:
filePattern - Expanded file pattern
{a/b} - a/b
/}{a/b} - /}a/b
p{a/b,c/d}s - pa/bs, pc/ds
{a/b,c/d,{e,f}} - a/b, c/d, {e,f}
{a/b,c/d}{e,f} - a/b{e,f}, c/d{e,f}
{a,b}/{b,{c/d,e/f}} - {a,b}/b, {a,b}/c/d, {a,b}/e/f
{a,b}/{c/\d} - {a,b}/c/d
filePattern - file pattern.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.