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 input stream to some other input stream or reader object to more easily handle the data.