Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-509

FileUtils.readFileToString: null not usable for default encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.5
    • None
    • Utilities
    • None

    Description

      Since 2.5 FileUtils.readFileToString(File) is deprecated. readFileToString(File, Charset) should be used instead.
      The javadoc of readFileToString(File, Charset) says that, if the charset is null, the platform default charset will be used.
      But I cannot use readFileToString(File, null) to get that behaviour, since there also is readFileToString(File, String), so that readFileToString(File, null) is ambiguous.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wolterhis Lars W
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: