public class Charset
extends com.google.gwt.core.client.JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
Charset() |
Modifier and Type | Method and Description |
---|---|
String |
decode(byte[] bytes) |
String |
decode(ByteBuffer body) |
byte[] |
encode(String text) |
ByteBuffer |
encode(String text,
ByteBuffer body) |
com.google.gwt.core.client.JsArrayInteger |
encodeAsByteArray(String text) |
static Charset |
getUTF8() |
public static Charset getUTF8()
public final String decode(ByteBuffer body)
public final ByteBuffer encode(String text, ByteBuffer body)
public final com.google.gwt.core.client.JsArrayInteger encodeAsByteArray(String text)
public final byte[] encode(String text)
public final String decode(byte[] bytes)
Copyright © 2015. All Rights Reserved.