PlayNプロジェクトには、次の Java コードがあります
import com.google.common.base.Charsets;
import java.nio.ByteBuffer;
ByteBuffer msg = ... // a ByteBuffer that contains a String
String s = Charsets.UTF_8.decode(msg).toString();
これは Java では問題なく動作しますが、GWT でコンパイルしようとすると、次のようになります。
The method decode(ByteBuffer) is undefined for the type Charset
GWT で、ByteBuffer 内にある文字列 (UTF-8 でエンコードされた) を取得する適切な方法は何ですか?