not been able to validate with the tow throw IOException conditions for both the methods.