Share via


PrintStream.checkError

Class Overview | Class Members | This Package | All Packages

Syntax

public boolean checkError()

Returns

True if the print stream has encountered an error, either on the underlying output stream or during a format conversion, otherwise false.

Description

Flush the stream and check its error state. Errors are cumulative; once the stream encounters an error, this routine will continue to return true on all successive calls.