Top Fields Constructors Methods
org.glassfish.grizzly.websockets

public Class Utf8Utils

extends Object
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.CharacterCodingException, .Charset, .CharsetEncoder, .CoderResult, org.glassfish.grizzly.utils.Charsets

Field Summary

Modifier and TypeField and Description
private static final byte[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static byte[]
copyOf(byte[] original, int newLength)

public static byte[]
encode(Charset charset, String string)

public static void
encode(Charset charset, String string, OutputStream os)

private static byte[]
safeTrim(byte[] ba, int len)

private static int
scale(int len, float expansionFactor)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_ARRAYback to summary
private static final byte[] EMPTY_ARRAY

Constructor Detail

Utf8Utilsback to summary
public Utf8Utils()

Method Detail

copyOfback to summary
private static byte[] copyOf(byte[] original, int newLength)
encodeback to summary
public static byte[] encode(Charset charset, String string)
encodeback to summary
public static void encode(Charset charset, String string, OutputStream os) throws IOException
safeTrimback to summary
private static byte[] safeTrim(byte[] ba, int len)
scaleback to summary
private static int scale(int len, float expansionFactor)