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
- shouldBeDirectory
- shouldExist
- public String removePrefixBeforeURI(String path)
path
- Copyright © 2014–2015 Apache Software Foundation. All rights reserved.