Java Socket Read getInputStream(Socket socket)

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

Description

get Input Stream

License

Apache License

Declaration

public static InputStream getInputStream(Socket socket) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.IOException;
import java.io.InputStream;

import java.net.Socket;

public class Main {
    public static InputStream getInputStream(Socket socket) {
        try {//from   w w  w  .jav a  2s.co m
            return socket.getInputStream();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
}

Related

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