package vul.ccbug;

import java.io.*;

/**
 * @ClassName: readObject
 * @Description: TODO
 * @Author: Samny
 * @Date: 2020/5/9 15:18
 * @Version: v1.0.0
 * @Description:
 **/
public class readObject {
    public static void main(String[] args) {
        File file = new File("tempfile2");
        FileInputStream fis = null;

        try {
            fis = new FileInputStream(file);
            ObjectInputStream ois = new ObjectInputStream(fis);
            ois.readObject();
            ois.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }
}
