KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Connection


1 // $Id: Connection.java,v 1.5 2000/11/29 17:34:55 daniela Exp $
2

3 import java.io.*;
4
5
6 public class Connection implements Serializable {
7     
8     protected Part p;
9     
10     protected String JavaDoc type = "conn";
11     
12     protected int length;
13     
14     
15     public Connection() {
16     }
17     
18     
19     public Connection( Part part ) {
20         p = part;
21     }
22     
23     // public void writeExternal (ObjectOutput out) throws IOException {
24
// out.writeObject (p);
25
// out.writeObject (type);
26
// out.writeInt (length);
27
// }
28
//
29
// public void readExternal (ObjectInput in) throws IOException, ClassNotFoundException {
30
// p = (Part)in.readObject();
31
// type = (DxString)in.readObject();
32
// length = in.readInt();
33
// }
34

35     
36     public void done() throws Exception JavaDoc {
37     }
38 }
39
Popular Tags