public Out(Socket socket){
  try {
    OutputStream os=socket.getOutputStream();
    OutputStreamWriter osw=new OutputStreamWriter(os,CHARSET_NAME);
    out=new PrintWriter(osw,true);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

public Out ( Socket socket ) { try { OutputStream os = socket . getOutputStream ( ) ; OutputStreamWriter osw = new OutputStreamWriter ( os , CHARSET_NAME ) ; out = new PrintWriter ( osw , true ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
initializes an output stream from a socket .
