Monday, January 02, 2006

1.3 Proxies mit Java-Pipes

1.3 Proxies mit Java-Pipes: "Proxies mit Java-Pipes"

PipedOutputStream request = new PipedOutputStream(),
out = new PipedOutputStream();
PipedInputStream reply = new PipedInputStream(),
in = new PipedInputStream();
in.connect(request); out.connect(reply);

peer.out = new ObjectOutputStream(request);
this.out = new ObjectOutputStream(out);
peer.in = new ObjectInputStream(reply);
this.in = new ObjectInputStream(in);

No comments: