Class FileUtil


  • public class FileUtil
    extends Object
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • isChildOf

        public static boolean isChildOf​(File receiver,
                                        File ancestor)
      • getNameOnly

        public static String getNameOnly​(File receiver)
      • getDotExtension

        public static String getDotExtension​(File receiver)
      • pathSlash

        public static String pathSlash​(File receiver)
      • getFileContent

        @Nullable
        public static @Nullable String getFileContent​(File receiver)
      • getFileContentBytes

        @Nullable
        public static @org.jetbrains.annotations.Nullable byte[] getFileContentBytes​(File receiver)
      • getFileContentBytesWithExceptions

        @NotNull
        public static @org.jetbrains.annotations.NotNull byte[] getFileContentBytesWithExceptions​(File receiver)
                                                                                           throws IOException
        Throws:
        IOException