Package org.apache.sis.xml
Class LegacyCodes
java.lang.Object
org.apache.sis.xml.LegacyCodes
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
FieldsModifier and TypeFieldDescriptionCharacter set codes (MD_CharacterSetCode
) mapping between ISO 19115:2003 and IANA names.Character set codes (MD_CharacterSetCode
) mapping between ISO 19115:2003 and IANA names. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
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
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
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.
-