Java Socket Read getBufferedReaderFromInputStream(Socket socket)

Here you can find the source of getBufferedReaderFromInputStream(Socket socket)

Description

get Buffered Reader From Input Stream

License

Open Source License

Declaration

public static BufferedReader getBufferedReaderFromInputStream(Socket socket) throws IOException 

Method Source Code


//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
}

Related

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