JDK-5030063 : (fmt) Formatter should have a flush method
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-04-12
  • Updated: 2017-05-16
  • Resolved: 2004-04-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b49Fixed
Related Reports
Relates :  
Description
If the Formatter's destination buffers output, it is difficult to force the 
data to be written to the underlying stream.  The Formatter itself should have 
a flush method which will call flush on the underlying stream if necessary. 

-- iag@sfbay 2004-04-11

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b49 tiger-beta2
14-06-2004

SUGGESTED FIX Add the following interface to java.io: package java.io; public interface Flushable { public void flush() throws IOException; } Add "implements Flushable" to the following classes which already have a flush method as defined in the new interface: java.io.OutputStream; java.io.Writer; Add the following method: java.io.Formatter.flush() Add "implements Flushable" to Formatter.java. -- iag@sfbay 2004-04-11
11-04-2004

EVALUATION Suggested fix is correct. -- iag@sfbay 2004-04-11
11-04-2004