Code example for StringBufferInputStream

Methods: readskip

0
	 * @tests java.io.StringBufferInputStream#read() 
	 */ 
	public void test_read() throws UnsupportedEncodingException { 
		// Test for method int java.io.StringBufferInputStream.read() 
		byte[] buf = new byte[5];
		sbis.skip(6);
		sbis.read(buf, 0, 5);
		assertEquals("Returned incorrect chars", "World", new String(buf, "UTF-8"));
	} 
 
	/** 
	 * @tests java.io.StringBufferInputStream#read(byte[], int, int) 
	 */ 
	public void test_read$BII() { 
		// Test for method int java.io.StringBufferInputStream.read(byte [], 
		// int, int) 
		assertEquals("Read returned incorrect char", 'H', sbis.read());
	} 
 
	/** 
Connect your IDE to all the code out there  Get Codota for Java