import java.io.IOException;import java.io.PipedWriter;import java.io.PipedReader; /** * Created by IntelliJ IDEA. * User: me * Date: 13.09.2006 * Time: 18:54:39 * To change this template use File | Settings | File Templates. */public class Pipe { public static void main(String[] args) throws IOException { PipedWriter out = new PipedWriter(); PipedReader in = new PipedReader(out); TextGenerator data = new TextGenerator(out); data.start(); int ch; while ((ch = in.read()) != -1) System.out.println((char)ch); System.out.println(); }}