diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-06 08:02:52 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-06 08:02:52 +0300 |
| commit | 1d99762c7965d351510cfb5e08eac25e48d96038 (patch) | |
| tree | f469493e911878ab9055ccf0494211bf9015922d /src/main/java/serialize/VSSerializable.java | |
| parent | 4d35597bd92607c4d194686e20b125044506c79a (diff) | |
Modernize project structure, update Maven config, move sources, add logging config, update README and .gitignore
Diffstat (limited to 'src/main/java/serialize/VSSerializable.java')
| -rw-r--r-- | src/main/java/serialize/VSSerializable.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/serialize/VSSerializable.java b/src/main/java/serialize/VSSerializable.java new file mode 100644 index 0000000..c115ad9 --- /dev/null +++ b/src/main/java/serialize/VSSerializable.java @@ -0,0 +1,34 @@ +package serialize; + +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; + +/** + * The Interface VSSerializable, all classes which take part of the serialize/ + * deserialize proces are implementing this interface. It is preferred over the + * standard Serializable interface of Java because we want not serialize the + * whole class tree of each class but certain variables only! + * + * @author Paul C. Buetow + */ +public interface VSSerializable { + /** + * Serializes + * + * @param serialize The serialize object + * @param objectOutputStream The object output stream + */ + public void serialize(VSSerialize serialize, + ObjectOutputStream objectOutputStream) + throws IOException; + /** + * Deserializes + * + * @param serialize The serialize object + * @param objectInputStream The object input stream + */ + public void deserialize(VSSerialize serialize, + ObjectInputStream objectInputStream) + throws IOException, ClassNotFoundException; +} |
