List of utility methods to do FileReader Read
String | read(File file) read BufferedReader br = new BufferedReader(new FileReader(file)); StringBuffer sb = new StringBuffer(); String line = null; while ((line = br.readLine()) != null) { sb.append(line).append('\n'); br.close(); return sb.toString().trim(); ... |
StringBuffer | read(String file) read BufferedReader in = null; StringBuffer sb = new StringBuffer(); String s = null; StringBuffer stringbuffer; try { in = new BufferedReader(new FileReader(file)); while ((s = in.readLine()) != null) sb.append(s).append('\n'); ... |
String | read(String fileName) read return read(new File(fileName)); |
String[] | readProtocols(String file) Read SSL/TLS protocols from a file. try { return readLines(file); } catch (IOException ioe) { System.err.println("Error reading protocols from: " + file); System.err.println(ioe.getMessage()); return null; |