Issue Details (XML | Word | Printable)

Key: JSON_PROCESSING_SPEC-15
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: jitu
Reporter: jitu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
json-processing-spec

Use Charset instead of string in methods

Created: 23/Oct/12 05:03 PM   Updated: 29/Oct/12 09:43 PM   Resolved: 24/Oct/12 10:41 PM
Component/s: None
Affects Version/s: 1.0-pr
Fix Version/s: 1.0-pr

Time Tracking:
Not Specified

Tags:
Participants: jitu


 Description  « Hide

For e.g.:
s/JsonReader(InputStream in, String encoding)/JsonReader(InputStream,
CharSet)
JDK 7 defined constants for standard charsets in StandardCharsets. For e.g
StandardCharsets.UTF_8
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.