Java Object Deserialize from File deserialize(String path)

Here you can find the source of deserialize(String path)

Description

deserialize

License

Apache License

Declaration

public static Object deserialize(String path) throws IOException, ClassNotFoundException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.*;

public class Main {
    public static Object deserialize(String path) throws IOException, ClassNotFoundException {
        FileInputStream fin = new FileInputStream(path);
        ObjectInputStream oin = new ObjectInputStream(fin);
        Object value = oin.readObject();
        oin.close();/*  w  w  w  .  j a va  2 s. c o m*/
        fin.close();
        return value;
    }
}

Related

  1. Deserialize(String filePath)
  2. deserialize(String filePath)
  3. deserialize(String fName)
  4. deserialize(String fname)
  5. deserialize(String path)
  6. deserialize(String path)
  7. deserializeFromDisk(String filePath)
  8. deserializeFromFile(File file)
  9. deserializeFromFile(File file)