Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.ByteArrayInputStream;

import java.io.ObjectInputStream;

public class Main {
    public static Object deserialize(byte[] array) throws Exception {
        //System.err.println("neser#"+new String(array));
        ObjectInputStream rin = new ObjectInputStream(new ByteArrayInputStream(array));
        Object obj = rin.readObject();
        rin.close();
        //System.err.println("neser##"+obj);
        return obj;
    }
}