Class UnixPathType


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

      • INSTANCE

        static final PathType INSTANCE
        Unix path type.
    • Constructor Detail

      • UnixPathType

        private UnixPathType()
    • Method Detail

      • checkValid

        private static void checkValid​(java.lang.String path)
      • toString

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

        public java.lang.String toUriPath​(java.lang.String root,
                                          java.lang.Iterable<java.lang.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