A DESCRIPTION OF THE REQUEST :
UnsupportedEncodingException has a
toString(String charsetName)
method but no
toString(Charset)
method.
JUSTIFICATION :
Every class that provides a conversion from bytes to string should have a method that takes a Charset object as a parameter.
Otherwise conversion between Charset and charset name has unnecessarily to be done, and UnsupportedEncodingException have to be handled where they could not occur.
ACTUAL -
The implementation is missing.
CUSTOMER SUBMITTED WORKAROUND :
See above.
UnsupportedEncodingException has a
toString(String charsetName)
method but no
toString(Charset)
method.
JUSTIFICATION :
Every class that provides a conversion from bytes to string should have a method that takes a Charset object as a parameter.
Otherwise conversion between Charset and charset name has unnecessarily to be done, and UnsupportedEncodingException have to be handled where they could not occur.
ACTUAL -
The implementation is missing.
CUSTOMER SUBMITTED WORKAROUND :
See above.
- duplicates
-
JDK-8183743 Umbrella: add overloads that take a Charset parameter
-
- Resolved
-
- relates to
-
JDK-8183743 Umbrella: add overloads that take a Charset parameter
-
- Resolved
-