Pipes let you connect two
Thread processes rather cleanly. A typical application would be one Thread gathering data from somewhere, formatting it, and sending it to another Thread for processing.
Take a look at the Javadoc documentation for the java.io package.
Bill