The java.util.PrintStream.close() method is used to close the stream and release any system resources associated with it. After closing the stream, further calls to methods such as print() or println() will not have any effect. This method should be called at the end of using the PrintStream object to ensure proper resource cleanup.
Java PrintStream.close - 30 examples found. These are the top rated real world Java examples of java.util.PrintStream.close extracted from open source projects. You can rate examples to help us improve the quality of examples.