2 * Test case for PR#690.
3 * The read method of java.io.PipedInputStream has no 'early out'.
5 * @author Win van Velthoven <ftu@fi.uu.nl>
8 class PipeTest extends Thread
11 PipedOutputStream out;
13 InputStreamReader isr;
14 OutputStreamWriter osw;
19 PipeTest() throws IOException
21 in = new PipedInputStream();
22 isr = new InputStreamReader(in);
23 br = new BufferedReader(isr);
24 out = new PipedOutputStream(in);
25 osw = new OutputStreamWriter(out);
26 pw = new PrintWriter(osw,true);
33 String line = br.readLine();
34 System.out.println(line);
35 } catch(IOException _) {}
38 public static void main(String[] args) throws IOException
40 PipeTest t = new PipeTest();
42 t.pw.println("PipeTest");