Reading Input from a Socket
The getInputStream() method returns an InputStream which reads data from the socket.
You can use all the normal methods of the InputStream class to read this data.
Most of the time you'll chain the InputStream to some other input stream or reader class to more easily handle the data.