@Test public void testReadLines() throws Exception { StringBuffer sb = new StringBuffer(); for (int i = 0; i < 10; i++) { sb.append("testReadLines").append("\n"); } StringReader reader = new StringReader(sb.toString()); List<String> lines = IOTinyUtils.readLines(reader); assertEquals(10, lines.size()); }
static public List<String> readLines(Reader input) throws IOException { BufferedReader reader = toBufferedReader(input); List<String> list = new ArrayList<String>(); String line; for (; ; ) { line = reader.readLine(); if (null != line) { list.add(line); } else { break; } } return list; }
IOTinyUtils { static public List<String> readLines(Reader input) throws IOException { BufferedReader reader = toBufferedReader(input); List<String> list = new ArrayList<String>(); String line; for (; ; ) { line = reader.readLine(); if (null != line) { list.add(line); } else { break; } } return list; } }
IOTinyUtils { static public List<String> readLines(Reader input) throws IOException { BufferedReader reader = toBufferedReader(input); List<String> list = new ArrayList<String>(); String line; for (; ; ) { line = reader.readLine(); if (null != line) { list.add(line); } else { break; } } return list; }  }
IOTinyUtils { static public List<String> readLines(Reader input) throws IOException { BufferedReader reader = toBufferedReader(input); List<String> list = new ArrayList<String>(); String line; for (; ; ) { line = reader.readLine(); if (null != line) { list.add(line); } else { break; } } return list; }  static String toString(InputStream input, String encoding); static String toString(Reader reader); static long copy(Reader input, Writer output); static List<String> readLines(Reader input); static void copyFile(String source, String target); static void delete(File fileOrDir); static void cleanDirectory(File directory); static void writeStringToFile(File file, String data, String encoding); }
IOTinyUtils { static public List<String> readLines(Reader input) throws IOException { BufferedReader reader = toBufferedReader(input); List<String> list = new ArrayList<String>(); String line; for (; ; ) { line = reader.readLine(); if (null != line) { list.add(line); } else { break; } } return list; }  static String toString(InputStream input, String encoding); static String toString(Reader reader); static long copy(Reader input, Writer output); static List<String> readLines(Reader input); static void copyFile(String source, String target); static void delete(File fileOrDir); static void cleanDirectory(File directory); static void writeStringToFile(File file, String data, String encoding);  }