Package com.google.common.jimfs
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 com.google.common.jimfs.PathType
PathType.ParseResult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkValid
(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 com.google.common.jimfs.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:PathType
Parses the given strings as a path. -
checkValid
-
toString
Description copied from class:PathType
Returns the string form of the given path. -
toUriPath
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. Thedirectory
boolean indicates whether the file the URI is for is known to be a directory. -
parseUriPath
Description copied from class:PathType
Parses a path from the given URI path.- Specified by:
parseUriPath
in classPathType
-