List of utility methods to do InputStreamReader Read Line
String | readLine(InputStreamReader is) read Line StringBuffer b = new StringBuffer(); int ch = -1; try { while ((ch = is.read()) != -1) { if (ch == '\r') continue; if (ch == '\n') break; ... |
String | readLine(InputStreamReader reader) Reads a line from a reader. int c = reader.read(); if (c == -1) { return null; StringBuffer line = new StringBuffer(); while (c != -1 && c != '\n') { if (c != '\r') { line.append((char) c); ... |
LinkedList | readLineList(InputStream stream) read an ordered list of string lines from input stream and close it LinkedList<String> values = new LinkedList<String>(); try { LineNumberReader lineReader = new LineNumberReader(new InputStreamReader(stream)); String line = null; while ((line = lineReader.readLine()) != null) { values.add(line); return values; ... |