Here you can find the source of getBufferedReader(Socket s)
public static BufferedReader getBufferedReader(Socket s) throws IOException
//package com.java2s; /**/*from w w w .jav a 2s . c o m*/ * Copyright (c) 2010 B?lint Kriv?n <balint@krivan.hu>. All rights reserved. * Use of this source code is governed by license that can be * found in the LICENSE file. */ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.Socket; public class Main { public static BufferedReader getBufferedReader(Socket s) throws IOException { return new BufferedReader(new InputStreamReader(s.getInputStream())); } }