String.getBytes(Charset) is not available in Java SE5:
return data.getBytes(Charset.forname("UTF-8"));
You can use getBytes(String charName) instead.
Additionally, String(byte[], int, int, Charset) in GetString() is unavailable
in SE5 too.
Same here, try String(byte[], int, int, String);
These are available in both Java SE5 and Java SE6.
Original issue reported on code.google.com by sky.ri...@gmail.com on 21 Jun 2011 at 1:00
Original issue reported on code.google.com by
sky.ri...@gmail.com
on 21 Jun 2011 at 1:00