public final class DynamicPath
extends java.lang.Object
Constructor | Description |
---|---|
DynamicPath(java.lang.String path) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<java.io.File> |
getAllFiles() |
Gets all files that are compatible with the dynamic path.
|
boolean |
isValid(java.io.File file) |
Checks if an already existing file is compatible with this dynamic path.
|
java.lang.String |
resolve() |
Resolves all patterns and generates a real path for a (new) file.
|
public DynamicPath(java.lang.String path)
path
- Path with patternspublic java.lang.String resolve()
public java.util.List<java.io.File> getAllFiles()
public boolean isValid(java.io.File file)
file
- File to checktrue
if passed file is compatible, false
if notCopyright © 2018. All rights reserved.