Why it cannot find getInputStream?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-22T16:43:17Z Indexed on 2010/03/22 16:51 UTC
Read the original article Hit count: 321

Filed under:
|
|

I have this code:

ServerSocket serverSideSocket = new ServerSocket(1234);
        serverSideSocket.accept();
        BufferedReader in = new BufferedReader(new InputStreamReader(serverSideSocket.getInputStream()));

And compiler writes me that it cannot find "getInputStream". I do not understand why. In the beginning of my code I do import java.net.*.

© Stack Overflow or respective owner

Related posts about java

Related posts about sockets