com.lowagie.text.xml.simpleparser

Class IanaEncodings

public class IanaEncodings extends Object

Translates a IANA encoding name to a Java encoding.
Field Summary
static HashMapmap
The object that maps IANA to Java encodings.
Method Summary
static StringgetJavaEncoding(String iana)
Gets the java encoding from the IANA encoding.

Field Detail

map

private static final HashMap map
The object that maps IANA to Java encodings.

Method Detail

getJavaEncoding

public static String getJavaEncoding(String iana)
Gets the java encoding from the IANA encoding. If the encoding cannot be found it returns the input.

Parameters: iana the IANA encoding

Returns: the java encoding