Package dev.galasa.framework
Class FileSystem
java.lang.Object
dev.galasa.framework.FileSystem
- All Implemented Interfaces:
IFileSystem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createDirectories
(Path folderPath) void
createFile
(Path filePath) createFile
(Path path, FileAttribute<?>... attrs) boolean
boolean
isDirectory
(Path filePath) boolean
isRegularFile
(Path filePath) newInputStream
(Path folderPath) probeContentType
(Path path) long
void
-
Constructor Details
-
FileSystem
public FileSystem()
-
-
Method Details
-
createDirectories
- Specified by:
createDirectories
in interfaceIFileSystem
- Throws:
IOException
-
createFile
- Specified by:
createFile
in interfaceIFileSystem
- Throws:
IOException
-
exists
- Specified by:
exists
in interfaceIFileSystem
-
isRegularFile
- Specified by:
isRegularFile
in interfaceIFileSystem
-
isDirectory
- Specified by:
isDirectory
in interfaceIFileSystem
-
walk
- Specified by:
walk
in interfaceIFileSystem
- Throws:
IOException
-
size
- Specified by:
size
in interfaceIFileSystem
- Throws:
IOException
-
newInputStream
- Specified by:
newInputStream
in interfaceIFileSystem
- Throws:
IOException
-
probeContentType
- Specified by:
probeContentType
in interfaceIFileSystem
- Throws:
IOException
-
createFile
- Specified by:
createFile
in interfaceIFileSystem
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIFileSystem
- Throws:
IOException
-
readLines
- Specified by:
readLines
in interfaceIFileSystem
- Throws:
IOException
-