Here you can find the source of saveBinary(File dumpFile, Object object)
public static void saveBinary(File dumpFile, Object object)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void saveBinary(File dumpFile, Object object) { try {/* w w w. ja v a2 s . c o m*/ ObjectOutputStream objStream = new ObjectOutputStream(new FileOutputStream(dumpFile)); objStream.writeObject(object); objStream.close(); } catch (IOException e) { throw new RuntimeException(e); } } }