java.io.PrintStream

This class is used to print translated and formatted text. No {@link IOException} is ever thrown by any of these methods, they are handled and provided as an error flag which can be obtained. If {@link InterruptedIOException} is thrown then the error state is not set, any operations which cause this to occur will instead call {@code Thread.currentThread().interrupt()}. Print streams may optionally have automatic flushing which will call {@link #flush()} whenever a byte array is written or when it is detected that {@code '\n'} is written. Internally the output is bufferred to optimize for writing multiple characters at once rather than one at a time. If not specified, the current system encoding is used. Any characters which are written to the output will be encoded accordingly.