[JSON_PROCESSING_SPEC-15] Use Charset instead of string in methods Created: 23/Oct/12  Updated: 29/Oct/12  Resolved: 24/Oct/12

Status: Resolved
Project: json-processing-spec
Component/s: None
Affects Version/s: 1.0-pr
Fix Version/s: 1.0-pr

Type: Improvement Priority: Major
Reporter: jitu Assignee: jitu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


For e.g.:
s/JsonReader(InputStream in, String encoding)/JsonReader(InputStream,
JDK 7 defined constants for standard charsets in StandardCharsets. For e.g
Applications take advantage of those constants when they use JDK 7. That
also means that API doesn't have to specify
of wrapping UnsupportedEncodingException in many places. Infact, it seems to
be that some places UnsupportedCharsetException/IllegalCharsetNameException
would be more appropriate than UnsupportedEncodingException.

Comment by jitu [ 24/Oct/12 ]

Added Charset instead of String while creating JsonParser/JsonGenerator/JsonReader/JsonWriter.

Generated at Sat Oct 22 21:59:11 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.