Module net.anwiba.commons.reference
Class PathUtilities
java.lang.Object
net.anwiba.commons.reference.utilities.PathUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathaddExtension(Path path, String extension) collectFolders(Path folder, Predicate<Path> predicate) static Pathstatic Pathstatic Pathstatic voiddeleteIfExits(Path folder) static StringgetExtension(String name) static StringgetExtension(Path path) static StringgetExtension(Path path, String... extensions) static FileSystemgetFileSystem(URI uri) static PathgetFileWithoutExtension(Path path) static PathgetFileWithoutExtention(Path path, String... extentions) static booleanhasExtension(Path path, String... extentions)
-
Constructor Details
-
PathUtilities
public PathUtilities()
-
-
Method Details
-
getExtension
-
getExtension
-
getExtension
-
addExtension
-
getFileWithoutExtension
-
hasExtension
-
getFileWithoutExtention
-
getFileSystem
- Throws:
IOException
-
create
- Throws:
IOException
-
create
-
create
-
collectFolders
- Throws:
IOException
-
deleteIfExits
- Throws:
IOException
-