com.vladsch.flexmark.util.misc.FileUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-util-misc Show documentation
Show all versions of flexmark-util-misc Show documentation
flexmark-java misc utility classes
The newest version!
package com.vladsch.flexmark.util.misc;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import org.jetbrains.annotations.NotNull;
public class FileUtil {
@NotNull
public static byte[] getFileContentBytesWithExceptions(File receiver) throws IOException {
return Files.readAllBytes(receiver.toPath());
}
}