Code example for ByteArrayInputStream

Methods: close

0
     * Tears down the fixture, for example, close a network connection. This 
     * method is called after a test is executed. 
     */ 
    protected void tearDown() throws IOException { 
        if (bais != null) {
            bais.close();
        } 
        if (os != null) {
            os.close();
        } 
        if (baos != null) {
            baos.close();
        } 
    } 
}