Code example for ObjectInputStream

Methods: closereadObject

0
 
    public static Object readObject() {
        Object obj = null;
        // ·´ÐòÁл¯»¯ 
        try { 
            ObjectInput input = new ObjectInputStream(new FileInputStream(FILE_NAME));
            obj = input.readObject();
            input.close();
        } catch (Exception e) {
            // Òì³£´¦Àí 
        } 
        return obj;
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java