01: package vicazh.hyperpool.stream;
02:
03: import java.io.*;
04:
05: class RecordConnection extends Connection {
06: static private long count = System.currentTimeMillis();
07:
08: private String s;
09:
10: RecordConnection(Element element) {
11: super (element);
12: s = ((FileService) element).getDir() + File.separatorChar
13: + String.valueOf(count++);
14: }
15:
16: public void setClient(OutputStream outputstream) throws IOException {
17: setClient(new RecordStream(this , outputstream, s + '.'
18: + ((RecordService) element).client));
19: }
20:
21: public void setServer(OutputStream outputstream) throws IOException {
22: setServer(new RecordStream(this , outputstream, s + '.'
23: + ((RecordService) element).server));
24: }
25: }
|