Here you can find the source of getBufferedReaderFromInputStream(Socket socket)
public static BufferedReader getBufferedReaderFromInputStream(Socket socket) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; import java.net.Socket; public class Main { public static BufferedReader getBufferedReaderFromInputStream(Socket socket) throws IOException { return new BufferedReader(new InputStreamReader(socket.getInputStream())); }//from ww w . ja v a 2 s. c om }