Code example for PipedReader

Methods: close

0
            fail("should throw IOException");
        } catch (IOException e) {
            // expected 
        } 
    	 
        pr = new PipedReader();
        pw = new PipedWriter(pr);
        pr.close();
	 
        try { 
            pw.flush();
            fail("should throw IOException");
        } catch (IOException e) {
            // expected 
        } 
    } 
 
    /** 
     * @tests java.io.PipedWriter#write(char[], int, int) 
     */ 
    public void test_write$CII() throws Exception {