Code example for PushbackReader

Methods: skip

0
     * java.io.PushbackReader#skip(long) 
     */ 
    public void test_skip$J() throws IOException { 
        PushbackReader tobj;
 
        tobj = new PushbackReader(underlying);
        tobj.skip(6);
        tobj.skip(1000000);
        tobj.skip(1000000);
        underlying.throwExceptionOnNextUse = true;
        try { 
            tobj.skip(1);
            fail("IOException not thrown.");
        } catch (IOException e) {
            // expected 
        } 
    } 
 
    /** 
     * java.io.PushbackReader#unread(char[], int, int) 
     */