Code example for PipedReader

Methods: read

0
     */ 
    public void test_read$CII_3() throws IOException { 
        PipedWriter pw = new PipedWriter();
        PipedReader obj = null;
        try { 
            obj = new PipedReader(pw);
            obj.read(new char[0], (int) -1, (int) 0);
            fail("IndexOutOfBoundsException expected");
        } catch (ArrayIndexOutOfBoundsException t) {
            fail("IndexOutOfBoundsException expected");
        } catch (IndexOutOfBoundsException t) {
            // Expected 
        } 
    } 
 
    /** 
     * @tests java.io.PipedReader#read(char[], int, int) 
     */ 
    public void test_read$CII_4() throws IOException { 
        PipedWriter pw = new PipedWriter();
        PipedReader obj = null;