Code example for PushbackReader

Methods: close

0
            fail("IOException not thrown.");
        } catch (IllegalArgumentException e) {
            // expected 
        } 
        try { 
            tobj = new PushbackReader(underlying, 0);
            tobj.close();
            fail("IOException not thrown.");
        } catch (IllegalArgumentException e) {
            // expected 
        } 
    } 
 
    /** 
     * java.io.PushbackReader#close() 
     */ 
    public void test_close() throws IOException { 
        PushbackReader tobj;
 
        tobj = new PushbackReader(underlying);
        tobj.close();