PerfTest.Function TestCharsetEncoderICU() {
try{
return new PerfTest.Function() {
ByteBuffer outBuf = ByteBuffer.allocate(encBuffer.length);
Charset myCharset = new CharsetProviderICU().charsetForName(testName);
CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length);
CharsetEncoder encoder = myCharset.newEncoder();
public void call() {
try{