Class UnixPathType
java.lang.Object
com.google.common.jimfs.PathType
com.google.common.jimfs.UnixPathType
Unix-style path type.
-
Nested Class Summary
Nested classes/interfaces inherited from class PathType
PathType.ParseResult -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckValid(String path) Parses the given strings as a path.parseUriPath(String uriPath) Parses a path from the given URI path.Returns the string form of the given path.Returns the string form of the given path for use in the path part of a URI.Methods inherited from class PathType
allowsMultipleRoots, emptyPath, fromUri, getOtherSeparators, getSeparator, joiner, splitter, toString, toUri, unix, windows
-
Field Details
-
INSTANCE
Unix path type.
-
-
Constructor Details
-
UnixPathType
private UnixPathType()
-
-
Method Details
-
parsePath
Description copied from class:PathTypeParses the given strings as a path. -
checkValid
-
toString
-
toUriPath
Description copied from class:PathTypeReturns 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. Thedirectoryboolean indicates whether the file the URI is for is known to be a directory. -
parseUriPath
Description copied from class:PathTypeParses a path from the given URI path.- Specified by:
parseUriPathin classPathType
-