the inputstream will be closed in following code which i'm not changing, so it's not displayed.