Code example for PushbackReader

Methods: read, unread

0
	 */ 
	public void test_ConstructorLjava_io_Reader() { 
		// Test for method java.io.PushbackReader(java.io.Reader) 
		try { 
			pbr.close();
			pbr = new PushbackReader(new StringReader(pbString));
			char buf[] = new char[5];
			pbr.read(buf, 0, 5);
			pbr.unread(buf);
		} catch (IOException e) {
			// Correct 
			return; 
		} 
		fail("Created reader with buffer larger than 1");
	} 
 
	/** 
	 * @tests java.io.PushbackReader#PushbackReader(java.io.Reader, int) 
	 */ 
	public void test_ConstructorLjava_io_ReaderI() { 
		// Test for method java.io.PushbackReader(java.io.Reader, int)