01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.
06: //
07: // $Id: BusImpl.java,v 1.1 2001/12/18 10:31:31 per_nyfelt Exp $
08:
09: package org.ozoneDB.test.simple;
10:
11: import java.io.*;
12: import org.ozoneDB.*;
13:
14: public class BusImpl extends AutoImpl implements Bus, Externalizable {
15:
16: /**
17: * The serialization version id used by the Java serialization.
18: * See also the Java documentation.
19: */
20: final static long serialVersionUID = 1L;
21:
22: int capacity = 12;
23:
24: public BusImpl() {
25: }
26:
27: public String toString() {
28: return "Bus:" + name + ", " + String.valueOf(age) + ", "
29: + capacity;
30: }
31:
32: public void writeExternal(ObjectOutput out) throws IOException {
33: }
34:
35: public synchronized void readExternal(ObjectInput in)
36: throws ClassNotFoundException, IOException {
37: }
38: }
|