getCharacterSetECIByValue static method
@param value character set ECI value
@return CharacterSetECI
representing ECI of given value, or null if it is legal but
unsupported
@throws FormatException if ECI value is invalid
Implementation
static CharacterSetECI? getCharacterSetECIByValue(int value) {
if (value < 0 || value >= 900) {
throw FormatsException.instance;
}
if (_valueToEci.isEmpty) {
init();
}
return _valueToEci[value];
}