Possible resource leak, so do:
BufferedReader bufferedReader = new BufferedReader(reader);
try { ... } finally { bufferedReader.close();}