Should not close stream writer before read it