Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8183554

Add constructors with Charset parameter for FileReader and FileWriter

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b05

      Description

      A DESCRIPTION OF THE REQUEST :
      A FileReader constructor should take a Charset.

      JUSTIFICATION :
      Currently you have to use an InputStreamReader wrapping a FileInputStream to put in a Charset.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      FileReader fr = new FileReader( file, charset );
      ACTUAL -
      Reader r = new InputStreamReader( new FileInputStream( file ), charset );

      CUSTOMER SUBMITTED WORKAROUND :
      Reader r = new InputStreamReader( new FileInputStream( file ), charset );

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joehw Joe Wang
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: