Java Socket Write createObjectOutputStream(Socket socket)

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

Description

create Object Output Stream

License

Apache License

Declaration

public static ObjectOutputStream createObjectOutputStream(Socket socket) throws IOException 

Method Source Code


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

import java.io.IOException;

import java.io.ObjectOutputStream;

import java.net.Socket;

public class Main {
    public static ObjectOutputStream createObjectOutputStream(Socket socket) throws IOException {
        return new ObjectOutputStream(socket.getOutputStream());
    }//from   ww w.  jav  a 2s  . c  o  m
}

Related

  1. copy(final Socket inputSocket, final Socket outputSocket)
  2. createWriter(Socket socket)
  3. getOutputStream(Socket socket)
  4. getOutputStreamFromSocket(final Socket socket)
  5. getWriter(Socket socket)