Class HomeDirectoryLocator
java.lang.Object
com.github.rvesse.airline.parser.resources.FileLocator
com.github.rvesse.airline.parser.resources.HomeDirectoryLocator
- All Implemented Interfaces:
ResourceLocator
A resource locator that allows the
~/ or ~\ alias (depending
on your platforms file separator) to be used to refer to the users home
directory
Note that if the users home directory cannot be obtained then this locator will not resolve the alias
-
Field Summary
Fields inherited from class FileLocator
FILE_URI_PREFIX -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FileLocator
open
-
Constructor Details
-
HomeDirectoryLocator
public HomeDirectoryLocator()
-
-
Method Details
-
resolve
Description copied from class:FileLocatorResolves the search location- Overrides:
resolvein classFileLocator- Parameters:
searchLocation- Search location- Returns:
- Resolved location
-