JDK-4984465 : (fmt) Additional convenience constructors and minor changes to related ctor spec
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-01-28
  • Updated: 2017-05-16
  • Resolved: 2004-03-16
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 b43Fixed
Related Reports
Relates :  
Relates :  
Description
The following convenience constructors should be added:

  PrintWriter(File file)
  PrintWriter(File file, String csn)
  PrintStream(File file)
  PrintWriter(File file, String csn)
  Formatter(File file)
  Formatter(File file, String csn)
  Formatter(File file, String csn, Locale l)
  Formatter(OutputStream os)
  Formatter(OutputStream, String csn)
  Formatter(OutputStream, String csn, Locale l)

These constructors are parallel to those which take a String fileName (e.g.
PrintStream(String fileName), Formatter(String fileName, String csn, Locale l),
etc.).

The existing specification for the fileName constructors need to be modified 
as follows:
  - the output is buffered (currently it states that it is not).
  - the text for @throws FileNotFoundException should be modified to be more
    consistent with the changes applied for 4722178
  - in Print{Stream,Writer}(String) remove reference to the "specified" charset
    and "this formatter"
  - remove duplicate documentation for SecurityException
  - in Formatter(String), remove all references to UnsupportedEncodingException
    (the default encoding should always be supported)

-- iag@sfbay 2004-01-27


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

EVALUATION These trivial modifications should be made as described. -- iag@sfbay 2004-02-01
01-02-2004