conditional extended to java for io operations