Java Object Deserialize deserialize(byte[] serialized)

Here you can find the source of deserialize(byte[] serialized)

Description

deserialize

License

Open Source License

Declaration

public static Object deserialize(byte[] serialized) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static Object deserialize(byte[] serialized) {
        try {// www  .  ja va2  s .c  o m
            ByteArrayInputStream bis = new ByteArrayInputStream(serialized);
            ObjectInputStream ois = new ObjectInputStream(bis);
            Object ret = ois.readObject();
            ois.close();
            return ret;
        } catch (IOException ioe) {
            throw new RuntimeException(ioe);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. deserialize(byte[] objectData)
  2. deserialize(byte[] objectData)
  3. deserialize(byte[] objectData)
  4. deserialize(byte[] serial)
  5. deserialize(byte[] serial)
  6. deserialize(byte[] serializedData)
  7. deserialize(byte[] serializedData, int startPos, int length)
  8. deserialize(byte[] serializedObject)
  9. deserialize(byte[] sf)