Code example for PipedWriter

Methods: close

0
        } 
    } 
 
    public void test_close() throws Exception { 
        PipedReader rd = new PipedReader();
        pw = new PipedWriter(rd);
        reader = new PReader(rd);
        try { 
            pw.close();
        } catch (IOException e) {
            fail("Test 1: Unexpected IOException: " + e.getMessage());
        } 
    } 
 
    public void test_connectLjava_io_PipedReader() throws Exception { 
        PipedReader rd = new PipedReader();
        pw = new PipedWriter();
 
        try { 
            pw.connect(rd);
        } catch (Exception e) {