KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > BusImpl


1 // $Id: BusImpl.java,v 1.7 2000/11/29 17:32:52 daniela Exp $
2

3 import java.io.*;
4 import org.ozoneDB.*;
5
6
7 public class BusImpl extends AutoImpl implements Bus, Externalizable {
8     
9     /**
10      * The serialization version id used by the Java serialization.
11      * See also the Java documentation.
12      */

13     final static long serialVersionUID = 1L;
14     
15     int capacity = 12;
16     
17     
18     // public BusImpl() {
19
// }
20

21     
22     public String JavaDoc toString() {
23         // System.out.println ("toString()...");
24
return "Bus:" + name + ", " + String.valueOf( age ) + ", " + capacity;
25     }
26     
27     
28     public void writeExternal( ObjectOutput out ) throws IOException {
29     }
30     
31     
32     public synchronized void readExternal( ObjectInput in ) throws ClassNotFoundException JavaDoc, IOException {
33     }
34 }
35
Popular Tags