Code example for LineNumberInputStream

Methods: read

0
     * @tests java.io.LineNumberInputStream#read() 
     */ 
    public void test_read() throws IOException { 
        assertEquals("Failed to read correct byte", '0', lnis.read());
        assertEquals("Failed to read correct byte on dos text", '0', lnis2
                .read());
        assertTrue("Failed to read correct byte on dos text",
                lnis2.read() == '\n');
        assertEquals("Failed to read correct byte on dos text", '1', lnis2
                .read());
        assertTrue("Failed to read correct byte on dos text",
                lnis2.read() == '\n');
        assertEquals("Failed to read correct byte on dos text", '2', lnis2
                .read());
    } 
 
    /** 
     * @tests java.io.LineNumberInputStream#read(byte[], int, int) 
     */ 
    public void test_read$BII() throws IOException, UnsupportedEncodingException { 
        byte[] buf = new byte[100];