1: 2: 3: 4: 5: 6: 7: 8:
StringReader in = new StringReader(s); char[] buf = new char[100]; int read = -1; while((read = in.read(buf)) > -1) { String piece = new String(buf, 0, read); System.out.println(piece); } in.close();