Package com.vladsch.flexmark.util.misc
Class FileUtil
- java.lang.Object
-
- com.vladsch.flexmark.util.misc.FileUtil
-
public class FileUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetDotExtension(File receiver)static @Nullable StringgetFileContent(File receiver)static @org.jetbrains.annotations.Nullable byte[]getFileContentBytes(File receiver)static @org.jetbrains.annotations.NotNull byte[]getFileContentBytesWithExceptions(File receiver)static @NotNull StringgetFileContentWithExceptions(File receiver)static StringgetNameOnly(File receiver)static booleanisChildOf(File receiver, File ancestor)static StringpathSlash(File receiver)static Fileplus(File receiver, String name)
-
-
-
Method Detail
-
getFileContentWithExceptions
@NotNull public static @NotNull String getFileContentWithExceptions(File receiver) throws IOException
- Throws:
IOException
-
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
-
-