APIdia Launch Partner
Top Fields Constructors Methods
com.sun.webkit.text

pack-priv final Class TextCodec

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, java.util.ArrayList, .List, .Map

Field Summary

Modifier and TypeField and Description
private final Charset
private static final Map<String, String>

Constructor Summary

AccessConstructor and Description
private
TextCodec(String encoding)

This could throw a runtime exception (see the documentation for the Charset.forName.) JNI code should handle the exception.

Method Summary

Modifier and TypeMethod and Description
private String
decode(byte[] data)

private byte[]
encode(char[] data)

private static String[]

Returns:

an array of charset alias/name pairs
getEncodings
()

Returns an array of charset alias/name pairs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charsetback to summary
private final Charset charset
RE_MAPback to summary
private static final Map<String, String> RE_MAP

Constructor Detail

TextCodecback to summary
private TextCodec(String encoding)

This could throw a runtime exception (see the documentation for the Charset.forName.) JNI code should handle the exception.

Method Detail

decodeback to summary
private String decode(byte[] data)
encodeback to summary
private byte[] encode(char[] data)
getEncodingsback to summary
private static String[] getEncodings()

Returns an array of charset alias/name pairs. The aliases are stored at the even array positions, names are at the following odd positions.

Returns:String[]

an array of charset alias/name pairs