01: package vicazh.hyperpool.stream.net;
02:
03: import java.io.*;
04: import vicazh.hyperpool.stream.*;
05:
06: /**
07: * This class is the superclass of all net connections
08: *
09: * @author Victor Zhigunov
10: * @version 0.4.0
11: */
12: public class Connection extends vicazh.hyperpool.stream.Connection {
13: public Connection() {
14: }
15:
16: /**
17: * @param element
18: * parent element
19: */
20: public Connection(Element element) {
21: super (element);
22: }
23:
24: public void setClient(OutputStream outputstream) throws IOException {
25: setClient(new Stream(this , outputstream));
26: }
27:
28: public void setServer(OutputStream outputstream) throws IOException {
29: setServer(new Stream(this, outputstream));
30: }
31: }
|