Name: rm29839 Date: 12/16/97
(See http://java.sun.com/products/jdk/1.1/docs/api/java.io.InputStreamReader.html#InputStreamReader(java.io.InputStream, java.lang.String)
.)
The description of java.io.InputStreamReader.In-
putStreamReader(InputStream in, String enc)
defines neither the logical values of the encoding
nor the actual form (exact spelling needed) of the
name.
Put another way, the documentation does not answer
the question, "What can be passed for the encoding
string?"
I wouldn't be surprised if the exact set of values
depends on the platform, so maybe you can't document
all possible legal values. However, the documen-
tation should refer to, or at least hint at, where
to look for supported encodings, and how to deter-
mine the exact spelling needed here.
(Is there a way in Java to get a list of available
encodings?)
This also applies to OutputStreamWriter.
(Review ID: 21810)
======================================================================
- duplicates
-
JDK-4139951 (docs) java.io.{InputStreamReader,OutputStreamWriter} should specify encodings
-
- Resolved
-