Code example for LineNumberReader

Methods: readskip

0
 
    /** 
     * @tests java.io.LineNumberReader#skip(long) 
     */ 
    public void test_skipJ() throws IOException { 
        lnr = new LineNumberReader(new StringReader(text));
        char[] c = new char[100];
        lnr.skip(80);
        lnr.read(c, 0, 100);
 
        assertTrue("Failed to skip to correct position", text
                .substring(80, 180).equals(new String(c, 0, c.length)));
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE