code_junkie

Does closing the BufferedReader/PrintWriter close the socket connection

Nov 13th, 2011
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. printWriter = new PrintWriter(theServer.getClientSocket().getOutputStream());
  2. bufferedReader = new BufferedReader(new InputStreamReader(theServer.getClientSocket().getInputStream()));
  3.  
  4.  
  5. printWriter.println("the line");
  6.  
  7. printWriter.close(); //Closing on these lines?
  8. bufferedReader.close(); //Closing on these lines?
Add Comment
Please, Sign In to add comment