Java Socket Write openWriter(Socket socket)

Here you can find the source of openWriter(Socket socket)

Description

open Writer

License

Open Source License

Declaration

public static synchronized PrintWriter openWriter(Socket socket) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

import java.io.PrintWriter;
import java.net.Socket;

public class Main {
    public static synchronized PrintWriter openWriter(Socket socket) throws IOException {
        PrintWriter writer = new PrintWriter(socket.getOutputStream(), true);
        return writer;
    }//  w ww.  j  a  v a 2 s . c  om
}

Related

  1. createObjectOutputStream(Socket socket)
  2. createWriter(Socket socket)
  3. getOutputStream(Socket socket)
  4. getOutputStreamFromSocket(final Socket socket)
  5. getWriter(Socket socket)
  6. writeData(Socket id, byte[] data, int len)
  7. writeDatasIntoSocket(Socket socket, String datas)
  8. writeFromServer(Socket sck, String row)
  9. writeOutputStream(Socket socket, StringBuffer sb)