01: package vicazh.hyperpool.stream;
02:
03: import java.io.*;
04:
05: class DialConnection extends Connection {
06: ByteArrayOutputStream astream;
07:
08: DialConnection(DialService service) {
09: super (service);
10: astream = new ByteArrayOutputStream();
11: }
12:
13: public void setClient(OutputStream outputstream) {
14: setClient(new DialClientStream(this , outputstream));
15: }
16:
17: public void setServer(OutputStream outputstream) {
18: setServer(new DialServerStream(this , outputstream));
19: }
20:
21: boolean b;
22:
23: void dial() throws IOException {
24: ((DialService) element).dial(this);
25: }
26: }
|