List of utility methods to do UTF8 InputStream Read
String | LoadUTF8(InputStream stream) Load UTF BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(stream, "UTF8")); String str; StringBuilder builder = new StringBuilder(); while ((str = in.readLine()) != null) { builder.append(str); builder.append("\n"); ... |
String | loadUTF8Stream(InputStream stream) load UTF Stream if (null == stream) { throw new FileNotFoundException(); StringBuffer buf = new StringBuffer(); Scanner scanner = new Scanner(stream, "UTF8"); while (scanner.hasNextLine()) { buf.append(scanner.nextLine()); buf.append("\n"); ... |