List of utility methods to do Text File Read by Encode
String | readFileAsString(final File f, final String encoding) Read a file into a string using the specified encoding. InputStream is = null; try { is = new FileInputStream(f); return readStreamAsString(is, encoding); } finally { if (is != null) is.close(); |
String | readFileAsString(InputStream input, OutputStream output, String inputEncoding) read File As String return replaceInFile(input, output, inputEncoding, null);
|