summaryrefslogtreecommitdiff
path: root/sources/shared/remotecall/RemoteCall.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
committerPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
commit89c679eb813611a2ede208b4c8e27c7f596b3be7 (patch)
treef44c19435286e78b9e8002990e1b55183a4fbc49 /sources/shared/remotecall/RemoteCall.java
parent177f346a9bbe455dc12fd26dfa2c586585c28c1e (diff)
added copyright to header
Diffstat (limited to 'sources/shared/remotecall/RemoteCall.java')
-rw-r--r--sources/shared/remotecall/RemoteCall.java34
1 files changed, 19 insertions, 15 deletions
diff --git a/sources/shared/remotecall/RemoteCall.java b/sources/shared/remotecall/RemoteCall.java
index 8703f00..c95a3a2 100644
--- a/sources/shared/remotecall/RemoteCall.java
+++ b/sources/shared/remotecall/RemoteCall.java
@@ -1,3 +1,7 @@
+/* NetCalendar 2006, 2009 (c) Dipl.-Inform. (FH) Paul C. Buetow
+ * http://netcalendar.buetow.org - netcalendar@dev.buetow.org
+ */
+
package shared.remotecall;
import java.io.*;
@@ -9,21 +13,21 @@ import java.io.*;
*
*/
public abstract class RemoteCall {
- /**
- * This is a help method for writeObject of the child classes, needed for ojbect serialization (sending part).
- * It checks if object is defined. If yes, it will be written to the given object output stream with a leading
- * flag with the value true. Otherwise only the false flag will be written to the object output stream.
- * @param objectOutputStream Specifies the output stream.
- * @throws IOException
- */
- protected final void writeObjectIfDefined(ObjectOutputStream objectOutputStream, Object object)
- throws IOException {
- if (object == null) {
- objectOutputStream.writeBoolean(false);
+ /**
+ * This is a help method for writeObject of the child classes, needed for ojbect serialization (sending part).
+ * It checks if object is defined. If yes, it will be written to the given object output stream with a leading
+ * flag with the value true. Otherwise only the false flag will be written to the object output stream.
+ * @param objectOutputStream Specifies the output stream.
+ * @throws IOException
+ */
+ protected final void writeObjectIfDefined(ObjectOutputStream objectOutputStream, Object object)
+ throws IOException {
+ if (object == null) {
+ objectOutputStream.writeBoolean(false);
- } else {
- objectOutputStream.writeBoolean(true);
- objectOutputStream.writeObject(object);
+ } else {
+ objectOutputStream.writeBoolean(true);
+ objectOutputStream.writeObject(object);
+ }
}
- }
}