Here you can find the source of getPrintWriterFromOutputStream(Socket socket)
private static PrintWriter getPrintWriterFromOutputStream(Socket socket) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; import java.net.Socket; public class Main { private static PrintWriter getPrintWriterFromOutputStream(Socket socket) throws IOException { return new PrintWriter(socket.getOutputStream()); }/* ww w . j a v a 2s. c o m*/ }