Code example for ObjectInputStream

Methods: readFields

0
            super(); 
        } 
 
        private void readObject(java.io.ObjectInputStream in)
                throws java.io.IOException, ClassNotFoundException { 
            in.readFields();
        } 
 
        private void writeObject(java.io.ObjectOutputStream out)
                throws java.io.IOException, ClassNotFoundException { 
            out.writeFields();
        } 
    } 
 
    private static class SerialPersistentFieldsWithoutField implements 
            java.io.Serializable {
        public int anInstanceVar = 5;
 
        public SerialPersistentFieldsWithoutField() { 
            super(); 
        }