JDK-4094886 : Need a load(Reader)/store(Writer) interface for Properties class
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 1.1.4,1.1.7,5.0,6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 1997-11-24
  • Updated: 2017-05-16
  • Resolved: 2006-04-14
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.
JDK 6
6 b81Fixed
Related Reports
Duplicate :  
Relates :  
Description
Name: dgC58589			Date: 11/24/97


Original title: StringBufferInputStream is deprecated, without suitable replacement

java.io.StringBufferInputStream
has been deprecated. However, I cannot find anything
to replace its full functionality.

Specifically, java.util.Properties.load() expects
an InputStream. I want it to read from a String.
StringBufferInputStream was previously the
perfect way to do this. 
Unfortunately, the recommended replacement is
java.io.StringReader, which is subclassed from
Reader, and is NOT usable as an InputStream.

The ideal fix would be to make Reader
implement InputStream.

A lesser fix, would be to document in the
deprecation notes for StringBufferInputStream,
what to do if you really need an InputStream
derived from a String

InputStreamReader seems to go from InputStream to
Reader. Now you need something to go from
Reader to InputStream
(Review ID: 20734)
======================================================================
A suggested fix from (company - Self , email - ###@###.###)
is attached to this report as filename 593432.txt (too large to paste here.)
There is a suggested fix from ###@###.### (see Comments).

Comments
EVALUATION Contribution-Forum:https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?forumID=1463&messageID=10421
06-12-2005

EVALUATION A better solution would be to provide a load(Reader)/store(Writer) interface.
23-08-2005

WORK AROUND Name: dgC58589 Date: 11/24/97 ======================================================================
08-09-2004