Code example for PushbackInputStream

Methods: mark

0
            // expected 
        } 
    } 
 
    public void test_mark() { 
        PushbackInputStream pb = new PushbackInputStream(
                new ByteArrayInputStream(new byte[] { 0 }), 2);
        pb.mark(Integer.MAX_VALUE);
        pb.mark(0);
        pb.mark(-1);
        pb.mark(Integer.MIN_VALUE);
    } 
 
 
	/** 
	 * @tests java.io.PushbackInputStream#PushbackInputStream(java.io.InputStream) 
	 */ 
	public void test_ConstructorLjava_io_InputStream() { 
        try { 
            PushbackInputStream str = new PushbackInputStream(null);
            str.read();