Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4984465
Votes 0
Synopsis (fmt) Additional convenience constructors and minor changes to related ctor spec
Category java:classes_io
Reported Against tiger-beta
Release Fixed 1.5(tiger-b43)
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs 4722178 , 4965344 , 5018629
Submit Date 28-JAN-2004
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)

--   xxxxx@xxxxx   2004-01-27
Work Around
N/A
Evaluation
These trivial modifications should be made as described.

--   xxxxx@xxxxx   2004-02-01
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang