Package dev.galasa.framework
Class FileSystem
java.lang.Object
dev.galasa.framework.FileSystem
- All Implemented Interfaces:
IFileSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDirectories(Path folderPath) voidcreateFile(Path filePath) createFile(Path path, FileAttribute<?>... attrs) booleanbooleanisDirectory(Path filePath) booleanisRegularFile(Path filePath) newInputStream(Path folderPath) probeContentType(Path path) readString(Path path) longvoid
-
Constructor Details
-
FileSystem
public FileSystem()
-
-
Method Details
-
createDirectories
- Specified by:
createDirectoriesin interfaceIFileSystem- Throws:
IOException
-
createFile
- Specified by:
createFilein interfaceIFileSystem- Throws:
IOException
-
exists
- Specified by:
existsin interfaceIFileSystem
-
isRegularFile
- Specified by:
isRegularFilein interfaceIFileSystem
-
isDirectory
- Specified by:
isDirectoryin interfaceIFileSystem
-
walk
- Specified by:
walkin interfaceIFileSystem- Throws:
IOException
-
size
- Specified by:
sizein interfaceIFileSystem- Throws:
IOException
-
newInputStream
- Specified by:
newInputStreamin interfaceIFileSystem- Throws:
IOException
-
probeContentType
- Specified by:
probeContentTypein interfaceIFileSystem- Throws:
IOException
-
createFile
- Specified by:
createFilein interfaceIFileSystem- Throws:
IOException
-
write
- Specified by:
writein interfaceIFileSystem- Throws:
IOException
-
readLines
- Specified by:
readLinesin interfaceIFileSystem- Throws:
IOException
-
readString
- Specified by:
readStringin interfaceIFileSystem- Throws:
IOException
-