Added Methods for BufferedWriter