public final class Paths extends Object
| Constructor and Description |
|---|
Paths() |
| Modifier and Type | Method and Description |
|---|---|
static FileSystem |
convert(FileSystem fs) |
static Path |
convert(Path path) |
static Path |
convert(Path path) |
static boolean |
isLock(Path path) |
static Path |
normalizePath(Path path)
git:// and default:// can point to the same location.
|
static Path |
normalizePath(Path path)
git:// and default:// can point to the same location.
|
static String |
readLockedBy(Path path) |
static String |
removePrefix(Path wholePath,
Path prefixToRemove)
Substring the second path from the first.
|
public static FileSystem convert(FileSystem fs)
public static boolean isLock(Path path)
public static String removePrefix(Path wholePath, Path prefixToRemove)
wholePath - What we want to substring from the first PathprefixToRemove - The Path we want to substringIllegalStateException - When the the prefix is longer than the URI where it is removed from.public static Path normalizePath(Path path)
path - Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.