Class HomeDirectoryLocator

  • All Implemented Interfaces:
    ResourceLocator

    public class HomeDirectoryLocator
    extends FileLocator
    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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String resolve​(java.lang.String searchLocation)
      Resolves the search location
      • Methods inherited from class com.github.rvesse.airline.parser.resources.FileLocator

        open
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HomeDirectoryLocator

        public HomeDirectoryLocator()
    • Method Detail

      • resolve

        protected java.lang.String resolve​(java.lang.String searchLocation)
        Description copied from class: FileLocator
        Resolves the search location
        Overrides:
        resolve in class FileLocator
        Parameters:
        searchLocation - Search location
        Returns:
        Resolved location