/** * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8. */ public static String readFileAsString(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); }
/** * Returns the contents of 'path' as a byte array. */ public static byte[] readFileAsByteArray(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toByteArray(); }
/** * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8. */ public static String readFileAsString(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); }
/** * Returns the contents of 'path' as a byte array. */ public static byte[] readFileAsByteArray(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toByteArray(); }
/** * Returns the contents of 'path' as a byte array. */ public static byte[] readFileAsByteArray(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toByteArray(); }
/** * Returns the contents of 'path' as a byte array. */ public static byte[] readFileAsByteArray(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toByteArray(); }
/** * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8. */ public static String readFileAsString(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); }
/** * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8. */ public static String readFileAsString(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); }
/** * Returns the contents of 'path' as a byte array. */ public static byte[] readFileAsByteArray(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toByteArray(); }
/** * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8. */ public static String readFileAsString(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); }
/** * Returns the contents of 'path' as a byte array. */ public static byte[] readFileAsByteArray(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toByteArray(); }
/** * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8. */ public static String readFileAsString(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); }
/** * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8. */ public static String readFileAsString(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); }
/** * Returns the contents of 'path' as a byte array. */ public static byte[] readFileAsByteArray(String absolutePath) throws IOException { return new FileReader(absolutePath).readFully().toByteArray(); }