Re:This should never happen
by masklinn on Thursday March 31, 2016 @10:10AM
(#11397275)
FWIW getBytes(Charset) doesn't throw, and there's a base set of charsets in StandardCharsets (1.7+):
(Charset.forName doesn't throw either, StandardCharsets avoid stringly-typed code but it's not available on 1.6 so if you're still stuck there Charset.forName works)
[ Parent
| on HN ]
You see the same thing with cipher suites, and there's unfortunately no `StandardCiphers` class.
Re:This should never happen
by Aaargh20318 on Thursday March 31, 2016 @10:30AM
(#11397407)
yeah I know, this was just the first example that came to mind.