Class FileSystemSnapshotHelper
java.lang.Object
io.higson.runtime.helper.snapshot.FileSystemSnapshotHelper
- All Implemented Interfaces:
SnapshotFileHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLineWithElement(Path path, String element) getDirectoryName(Path path) getFileName(Path path, String fileExtension) booleanisDirectory(Path path) booleanisDirectory(Path path, String name) booleanbooleannewBufferedReader(Path path) byte[]readAllBytes(Path path)
-
Constructor Details
-
FileSystemSnapshotHelper
public FileSystemSnapshotHelper()
-
-
Method Details
-
isFile
- Specified by:
isFilein interfaceSnapshotFileHelper
-
isFile
- Specified by:
isFilein interfaceSnapshotFileHelper
-
isDirectory
- Specified by:
isDirectoryin interfaceSnapshotFileHelper
-
isDirectory
- Specified by:
isDirectoryin interfaceSnapshotFileHelper
-
getDirectoryName
- Specified by:
getDirectoryNamein interfaceSnapshotFileHelper
-
getFileName
- Specified by:
getFileNamein interfaceSnapshotFileHelper
-
getParent
- Specified by:
getParentin interfaceSnapshotFileHelper
-
readAllBytes
- Specified by:
readAllBytesin interfaceSnapshotFileHelper- Throws:
IOException
-
newBufferedReader
- Specified by:
newBufferedReaderin interfaceSnapshotFileHelper- Throws:
IOException
-
containsLineWithElement
- Specified by:
containsLineWithElementin interfaceSnapshotFileHelper- Throws:
IOException
-