Java Serialize serializeObject(String path, Object e)

Here you can find the source of serializeObject(String path, Object e)

Description

serialize Object

License

Open Source License

Declaration

public static void serializeObject(String path, Object e) 

Method Source Code

//package com.java2s;

import java.io.*;

public class Main {
    public static void serializeObject(String path, Object e) {
        OutputStream os;/*from   ww  w  .  j  a v a 2s .  c  om*/
        try {
            os = new FileOutputStream(path);
            ObjectOutput oo = new ObjectOutputStream(os);
            oo.writeObject(e);
            oo.close();
        } catch (Exception e1) {
            e1.printStackTrace();
        }
    }
}

Related

  1. serializeJdk(Object obj)
  2. serializeMock(Object mock)
  3. serializeObject(B b)
  4. serializeObject(final Object object)
  5. serializeObject(String absFilePath, Object obj)
  6. serializeObject(T obj)
  7. serializeObjects(File oof, Object[] objectsOut)
  8. serializeObjectToFile(Object obj, File f)
  9. serializeObjectToFile(Object object, String filename)