org.w3c.tidy
Class EncodingNameMapper

java.lang.Object
  extended by org.w3c.tidy.EncodingNameMapper

public abstract class EncodingNameMapper
extends java.lang.Object

Maps between Java and IANA character encoding names. Also handles encoding alias used in tidy c.

Version:
$Revision: 804 $ ($Author: fgiust $)
Author:
Fabrizio Giustina
See Also:
http://www.iana.org/assignments/character-sets

Constructor Summary
EncodingNameMapper()
           
 
Method Summary
static java.lang.String toIana(java.lang.String encoding)
          Convert a Java character encoding name to its IANA equivalent.
static java.lang.String toJava(java.lang.String encoding)
          Converts an encoding name to the standard java name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodingNameMapper

public EncodingNameMapper()
Method Detail

toIana

public static java.lang.String toIana(java.lang.String encoding)
Convert a Java character encoding name to its IANA equivalent.

Parameters:
encoding - java encoding name or alias
Returns:
iana equivalent or null if no match is found.

toJava

public static java.lang.String toJava(java.lang.String encoding)
Converts an encoding name to the standard java name. Handles IANA names, legacy names used in tidy and different java encoding alias. See http://www.iana.org/assignments/character-sets.

Parameters:
encoding - IANA encoding name or alias
Returns:
java equivalent or null if no match is found.


Copyright © 2000-2006 sourceforge. All Rights Reserved.