IOStream add readUntilClose method