-
Enhancement
-
Resolution: Fixed
-
P3
-
1.1.4, 1.1.7, 5.0, 6
-
b81
-
generic, x86
-
generic, windows_xp
-
Verified
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).
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).
- duplicates
-
JDK-4217782 Replacement for java.io.StringBufferInputStream? StringReader is no InputStream!
-
- Closed
-
- relates to
-
JDK-4919638 Unicode property files for PropertyResourceBundles - again
-
- Closed
-