diff options
| author | Paul Buetow <paul@buetow.org> | 2009-02-15 12:59:17 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-02-15 12:59:17 +0000 |
| commit | 2a93a612375aa6c8fd35280778624d486a81d2d2 (patch) | |
| tree | 5f0b88be2b6bb5b0eb8a33f5a3e996e2352655c5 /shared/remotecall/ServerResponse.java | |
| parent | 3f06de0d35403234601f3bc8325ec8d37071d4a3 (diff) | |
run astyle
Diffstat (limited to 'shared/remotecall/ServerResponse.java')
| -rw-r--r-- | shared/remotecall/ServerResponse.java | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/shared/remotecall/ServerResponse.java b/shared/remotecall/ServerResponse.java index d2990bc..49cd0c9 100644 --- a/shared/remotecall/ServerResponse.java +++ b/shared/remotecall/ServerResponse.java @@ -10,44 +10,44 @@ import java.util.Vector; * */ public final class ServerResponse extends RemoteCall implements Serializable { - private static final long serialVersionUID = 1L; - private Vector vecEvents = null; + private static final long serialVersionUID = 1L; + private Vector vecEvents = null; - /** - * Simple constructor, creates a server response which can be sent to the calendar client. - * @param vecEvents Specifies all calendar events to be sent to the calendar client. - */ - public ServerResponse(Vector vecEvents) { - this.vecEvents = vecEvents; - } - - /** - * Needed for ojbect serialization (sending part). - * @param objectOutputStream Specifies the output stream. - * @throws IOException - */ - private void writeObject(ObjectOutputStream objectOutputStream) - throws IOException { - super.writeObjectIfDefined(objectOutputStream, vecEvents); - } - - /** - * Needed for object serialization (recieving part). - * @param objectInputStream Specifies the input stream. - * @throws IOException - * @throws ClassNotFoundException - */ - private void readObject(ObjectInputStream objectInputStream) - throws IOException, ClassNotFoundException { - if (objectInputStream.readBoolean()) - vecEvents = (Vector) objectInputStream.readObject(); - } - - /** - * This method returns a vector of all requested calendar events. - * @return Returns a Vector of all requested CalendarEvent objects. - */ - public Vector getEvents() { - return vecEvents; - } + /** + * Simple constructor, creates a server response which can be sent to the calendar client. + * @param vecEvents Specifies all calendar events to be sent to the calendar client. + */ + public ServerResponse(Vector vecEvents) { + this.vecEvents = vecEvents; + } + + /** + * Needed for ojbect serialization (sending part). + * @param objectOutputStream Specifies the output stream. + * @throws IOException + */ + private void writeObject(ObjectOutputStream objectOutputStream) + throws IOException { + super.writeObjectIfDefined(objectOutputStream, vecEvents); + } + + /** + * Needed for object serialization (recieving part). + * @param objectInputStream Specifies the input stream. + * @throws IOException + * @throws ClassNotFoundException + */ + private void readObject(ObjectInputStream objectInputStream) + throws IOException, ClassNotFoundException { + if (objectInputStream.readBoolean()) + vecEvents = (Vector) objectInputStream.readObject(); + } + + /** + * This method returns a vector of all requested calendar events. + * @return Returns a Vector of all requested CalendarEvent objects. + */ + public Vector getEvents() { + return vecEvents; + } } |
