/** * Helper method for serialization. * * @param in the input stream from where to read the serialized object. * @throws IOException when reading the stream fails. * @throws ClassNotFoundException if a class definition for a serialized * object could not be found. */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final boolean readParent = in.readBoolean(); if (readParent) { this.parentConfiguration = (ModifiableConfiguration) in.readObject(); } else { this.parentConfiguration = null; } configurationLoaded(); }
/** * Helper method for serialization. * * @param in the input stream from where to read the serialized object. * @throws IOException when reading the stream fails. * @throws ClassNotFoundException if a class definition for a serialized * object could not be found. */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final boolean readParent = in.readBoolean(); if (readParent) { this.parentConfiguration = (ModifiableConfiguration) in.readObject(); } else { this.parentConfiguration = null; } configurationLoaded(); }
/** * Helper method for serialization. * * @param in the input stream from where to read the serialized object. * @throws IOException when reading the stream fails. * @throws ClassNotFoundException if a class definition for a serialized * object could not be found. */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final boolean readParent = in.readBoolean(); if (readParent) { parentConfiguration = (ModifiableConfiguration) in.readObject(); } else { parentConfiguration = null; } configurationLoaded(); }