Here you can find the source of deserialize(String serializedObject)
public static Object deserialize(String serializedObject)
//package com.java2s; //License from project: Open Source License import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; import java.util.Base64; public class Main { public static Object deserialize(String serializedObject) { try {/*from ww w . j ava 2 s .c o m*/ byte b[] = Base64.getDecoder().decode(serializedObject); ByteArrayInputStream bi = new ByteArrayInputStream(b); ObjectInputStream si = new ObjectInputStream(bi); return si.readObject(); } catch (Exception e) { System.out.println(e); return null; } } public static Object deserialize(byte[] bytes) { try { ByteArrayInputStream bi = new ByteArrayInputStream(bytes); ObjectInputStream si = new ObjectInputStream(bi); return si.readObject(); } catch (Exception e) { System.out.println(e); return null; } } }