Class UnixPathType

java.lang.Object
com.google.common.jimfs.PathType
com.google.common.jimfs.UnixPathType

final class UnixPathType extends PathType
Unix-style path type.
  • Field Details

    • INSTANCE

      static final PathType INSTANCE
      Unix path type.
  • Constructor Details

    • UnixPathType

      private UnixPathType()
  • Method Details

    • parsePath

      public PathType.ParseResult parsePath(String path)
      Description copied from class: PathType
      Parses the given strings as a path.
      Specified by:
      parsePath in class PathType
    • checkValid

      private static void checkValid(String path)
    • toString

      public String toString(@Nullable String root, Iterable<String> names)
      Description copied from class: PathType
      Returns the string form of the given path.
      Specified by:
      toString in class PathType
    • toUriPath

      public String toUriPath(String root, Iterable<String> names, boolean directory)
      Description copied from class: PathType
      Returns the string form of the given path for use in the path part of a URI. The root element is not nullable as the path must be absolute. The elements of the returned path do not need to be escaped. The directory boolean indicates whether the file the URI is for is known to be a directory.
      Specified by:
      toUriPath in class PathType
    • parseUriPath

      public PathType.ParseResult parseUriPath(String uriPath)
      Description copied from class: PathType
      Parses a path from the given URI path.
      Specified by:
      parseUriPath in class PathType