Code example for SequenceInputStream

Methods: available

0
	 */ 
	public void test_available() { 
		// Test for method int java.io.SequenceInputStream.available() 
		try { 
 
			assertTrue("Returned incorrect number of bytes: " + si.available(),
					si.available() == s1.length());
		} catch (IOException e) {
			fail("IOException during available test : " + e.getMessage());
		} 
	} 
 
	/** 
	 * @tests java.io.SequenceInputStream#close() 
	 */ 
	public void test_close() throws IOException { 
		si.close();		
		//will not throw IOException to close a stream which is closed already 
		si.close();
	}