Easy to read is the code you posted in the comments (with the optional str definition)
DataInputStream inStream = null;
String str = null;
BufferedReader bufRd = new BufferedReader(new InputStreamReader(inStream));
while((str = bufRd.readLine()) != null){
System.out.println(str);
}
, . "" "reset" Streamreader. , , " ", .
, , Reader ( "" ), , , . .