Class FileIOUtils
java.lang.Object
io.jmix.flowui.devserver.frontend.FileIOUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
compareIgnoringIndentationAndEOL
(String content1, String content2, BiPredicate<String, String> compareFn) static boolean
compareIgnoringIndentationEOLAndWhiteSpace
(String content1, String content2, BiPredicate<String, String> compareFn) getFilesByPattern
(Path baseDir, String pattern) static File
static boolean
isProbablyTemporaryFile
(File file) static boolean
writeIfChanged
(File file, String content) static boolean
writeIfChanged
(File file, List<String> content)
-
Method Details
-
writeIfChanged
- Throws:
IOException
-
writeIfChanged
- Throws:
IOException
-
getProjectFolderFromClasspath
-
isProbablyTemporaryFile
-
getFilesByPattern
- Throws:
IOException
-
compareIgnoringIndentationAndEOL
public static boolean compareIgnoringIndentationAndEOL(String content1, String content2, BiPredicate<String, String> compareFn) -
compareIgnoringIndentationEOLAndWhiteSpace
public static boolean compareIgnoringIndentationEOLAndWhiteSpace(String content1, String content2, BiPredicate<String, String> compareFn)
-