Here you can find the source of serializeObject(String path, Object e)
public static void serializeObject(String path, Object e)
//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(); } } }