KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > simple > BusImpl


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.
6
//
7
// $Id$
8

9 package test.simple;
10
11 import java.io.Externalizable JavaDoc;
12 import java.io.IOException JavaDoc;
13 import java.io.ObjectInput JavaDoc;
14 import java.io.ObjectOutput JavaDoc;
15
16
17 public class BusImpl extends AutoImpl implements Bus, Externalizable JavaDoc {
18
19     /**
20      * The serialization version id used by the Java serialization.
21      * See also the Java documentation.
22      */

23     final static long serialVersionUID = 1L;
24
25     int capacity = 12;
26
27
28     public BusImpl() {
29     }
30
31
32     public String JavaDoc toString() {
33         return "Bus:" + name + ", " + String.valueOf(age) + ", " + capacity;
34     }
35
36
37     public void writeExternal(ObjectOutput JavaDoc out) throws IOException JavaDoc {
38     }
39
40
41     public synchronized void readExternal(ObjectInput JavaDoc in) throws ClassNotFoundException JavaDoc, IOException JavaDoc {
42     }
43 }
44
Popular Tags