public class PathValidator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PATH_PREFIX |
Constructor and Description |
---|
PathValidator(LensConf config) |
Modifier and Type | Method and Description |
---|---|
String |
getValidPath(File path,
boolean shouldBeDirectory,
boolean shouldExist)
Converts the input path to appropriate File/URI path.
|
String |
removePrefixBeforeURI(String path)
The CLI erroneously appends absolute path for URI's.
|
public static final String PATH_PREFIX
public PathValidator(LensConf config)
public String getValidPath(File path, boolean shouldBeDirectory, boolean shouldExist)
path
- input pathshouldBeDirectory
- should be a directoryshouldExist
- should existpublic String removePrefixBeforeURI(String path)
path
- input pathCopyright © 2014–2016 Apache Software Foundation. All rights reserved.