It is possible to read input stream with BufferedReader and with Scanner. If you don't have a good reason,it is better to use BufferedRead (for broad discussion BufferedReader vs Scanner see.
I would also suggest using the Buffered Reader with try-with-resources to make sure the resource are auto-closed. see
See the following code
try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) {
while (reader.ready()) {
String line = reader.readLine();
System.out.println(line);
}
}catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}