Java Socket Read getBufferedReader(Socket s)

Here you can find the source of getBufferedReader(Socket s)

Description

get Buffered Reader

License

Open Source License

Declaration

public static BufferedReader getBufferedReader(Socket s) throws IOException 

Method Source Code

//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()));
    }
}

Related

  1. dump(final Socket socket)
  2. getBufferedReaderFromInputStream(Socket socket)
  3. getInputStream(Socket socket)
  4. getInputStreamFromSocket(final Socket socket)
  5. getPrintWriter(Socket s)