for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package es.webbeta.serializer.base;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
public class FileUtils {
public static String getContent(Path path) throws IOException {
byte[] encoded = Files.readAllBytes(path);
return new String(encoded, StandardCharsets.UTF_8);
}