Here you can find the source of getBufferedReader(String file)
public static BufferedReader getBufferedReader(String file)
//package com.java2s; /**/*from w w w .j a v a 2 s. c om*/ * Copyright (c) 2016-2020 Weibo, Inc. * All rights reserved. * * This software is the confidential and proprietary information of Weibo, * Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into with Weibo. */ import java.io.BufferedReader; import java.io.FileReader; public class Main { public static BufferedReader getBufferedReader(String file) { BufferedReader reader = null; try { reader = new BufferedReader(new FileReader(file)); } catch (Exception e) { } return reader; } }