Here you can find the source of getBufferedReader(Reader rd)
BufferedReader
.
public static BufferedReader getBufferedReader(Reader rd)
//package com.java2s; /*// w w w .ja va 2 s.co m * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE file. */ import java.io.BufferedReader; import java.io.Reader; public class Main { /** * Get <code>BufferedReader</code>. */ public static BufferedReader getBufferedReader(Reader rd) { BufferedReader br = null; if (br instanceof java.io.BufferedReader) { br = (BufferedReader) rd; } else { br = new BufferedReader(rd); } return br; } }