Java Object Deserialize deserializeObject(byte[] buf)

Here you can find the source of deserializeObject(byte[] buf)

Description

deserialize Object

License

Open Source License

Declaration

public static Object deserializeObject(byte[] buf) throws IOException,
            ClassNotFoundException 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.io.ByteArrayInputStream;

import java.io.IOException;
import java.io.ObjectInputStream;

public class Main {
    public static Object deserializeObject(byte[] buf) throws IOException,
            ClassNotFoundException {
        try (ObjectInputStream inStream = new ObjectInputStream(
                new ByteArrayInputStream(buf))) {
            return inStream.readObject();
        }//from ww w . ja v a2 s .co  m
    }
}

Related

  1. deserializeFromByteArray(byte[] encodedValue, String description)
  2. deserializeFromByteArray(byte[] in)
  3. deserializeFromBytes(byte[] bytes, Class clazz)
  4. deserializeFromBytes(byte[] serialized, Class clazz)
  5. deserializeFromBytes(byte[] serializedObject)
  6. deserializeObject(byte[] bytes)
  7. deserializeObject(byte[] bytes)
  8. deserializeObject(byte[] bytes)
  9. deserializeObject(byte[] bytes)