Java Socket Read getPrintWriter(Socket s)

Here you can find the source of getPrintWriter(Socket s)

Description

get Print Writer

License

Open Source License

Declaration

public static PrintWriter getPrintWriter(Socket s) throws IOException 

Method Source Code

//package com.java2s;
/**//from   ww w  .java  2s.c  o m
 * Copyright (c) 2010 B?lint Kriv?n <balint@krivan.hu>. All rights reserved.
 * Use of this source code is governed by license that can be
 * found in the LICENSE file.
 */

import java.io.IOException;

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

public class Main {
    public static PrintWriter getPrintWriter(Socket s) throws IOException {
        return new PrintWriter(s.getOutputStream());
    }
}

Related

  1. dump(final Socket socket)
  2. getBufferedReader(Socket s)
  3. getBufferedReaderFromInputStream(Socket socket)
  4. getInputStream(Socket socket)
  5. getInputStreamFromSocket(final Socket socket)
  6. getPrintWriterFromOutputStream(Socket socket)
  7. getResponse(Socket socket)
  8. readBytesIntoSocket(Socket socket)
  9. readData(Socket connId, byte[] dataRead, int nchar)