Class IanaEncodings


  • public class IanaEncodings
    extends java.lang.Object
    Translates a IANA encoding name to a Java encoding.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Map<java.lang.String,​java.lang.String> MAP
      The object that maps IANA to Java encodings.
    • Constructor Summary

      Constructors 
      Constructor Description
      IanaEncodings()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getJavaEncoding​(java.lang.String iana)
      Gets the java encoding from the IANA encoding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAP

        private static final java.util.Map<java.lang.String,​java.lang.String> MAP
        The object that maps IANA to Java encodings.
    • Constructor Detail

      • IanaEncodings

        public IanaEncodings()
    • Method Detail

      • getJavaEncoding

        public static java.lang.String getJavaEncoding​(java.lang.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