Java Socket Write getOutputStream(Socket socket)

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

Description

get Output Stream

License

Apache License

Declaration

public static OutputStream getOutputStream(Socket socket) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.IOException;

import java.io.OutputStream;

import java.net.Socket;

public class Main {
    public static OutputStream getOutputStream(Socket socket) {
        // TODO Auto-generated method stub
        try {/*from  www .  java 2  s. c o m*/
            return socket.getOutputStream();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
}

Related

  1. copy(final Socket inputSocket, final Socket outputSocket)
  2. createObjectOutputStream(Socket socket)
  3. createWriter(Socket socket)
  4. getOutputStreamFromSocket(final Socket socket)
  5. getWriter(Socket socket)
  6. openWriter(Socket socket)
  7. writeData(Socket id, byte[] data, int len)