Class LegacyCodes

java.lang.Object
org.apache.sis.xml.LegacyCodes

final class LegacyCodes extends Object
Mapping between some legacy codes (e.g. ISO 19115:2003) and newer codes (e.g. ISO 19115:2014). Provided in a separated class for loading only when first needed.
Since:
0.5
Version:
0.5
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final Map<String,String>
    Character set codes (MD_CharacterSetCode) mapping between ISO 19115:2003 and IANA names.
    (package private) static final Map<String,String>
    Character set codes (MD_CharacterSetCode) mapping between ISO 19115:2003 and IANA names.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Do not allow instantiation of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static String
    Converts the given IANA name to its legacy ISO 19115:2003 character set code.
    (package private) static String
    toIANA(String legacy)
    Converts the given legacy ISO 19115:2003 character set code to its IANA name.

    Methods inherited from class java.lang.Object

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

    • IANA_TO_LEGACY

      static final Map<String,String> IANA_TO_LEGACY
      Character set codes (MD_CharacterSetCode) mapping between ISO 19115:2003 and IANA names. The ISO 19115:2014 revision uses IANA names.
    • LEGACY_TO_IANA

      static final Map<String,String> LEGACY_TO_IANA
      Character set codes (MD_CharacterSetCode) mapping between ISO 19115:2003 and IANA names. The ISO 19115:2014 revision uses IANA names.
  • Constructor Details

    • LegacyCodes

      private LegacyCodes()
      Do not allow instantiation of this class.
  • Method Details

    • fromIANA

      static String fromIANA(String name)
      Converts the given IANA name to its legacy ISO 19115:2003 character set code. If the given name is unknown, then it is returned unchanged.
    • toIANA

      static String toIANA(String legacy)
      Converts the given legacy ISO 19115:2003 character set code to its IANA name. If the given legacy code is unknown, then it is returned unchanged.