Here you can find the source of close(FileReader reader, BufferedReader br)
public static void close(FileReader reader, BufferedReader br)
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; public class Main { public static void close(FileReader reader, BufferedReader br) { try {// w w w .j a v a 2s . c o m if (reader != null) reader.close(); if (br != null) br.close(); } catch (IOException e) { // TODO Auto-generated catch block } } public static void close(FileWriter writer, BufferedWriter bw) { try { if (writer != null) writer.close(); if (bw != null) bw.close(); } catch (IOException e) { // TODO Auto-generated catch block } } }